Package org.lwjgl.util.ktx
Class ktxVulkanTexture
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct ktxVulkanTexture {
PFN_vkDestroyImage vkDestroyImage;
PFN_vkFreeMemory vkFreeMemory;
VkImage image;
VkFormat imageFormat;
VkImageLayout imageLayout;
VkDeviceMemory deviceMemory;
VkImageViewType viewType;
uint32_t width;
uint32_t height;
uint32_t depth;
uint32_t levelCount;
uint32_t layerCount;
uint64_t allocationId;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionktxVulkanTexture
(ByteBuffer container) Creates aktxVulkanTexture
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
static ktxVulkanTexture
calloc()
Returns a newktxVulkanTexture
instance allocated withmemCalloc
.static ktxVulkanTexture.Buffer
calloc
(int capacity) Returns a newktxVulkanTexture.Buffer
instance allocated withmemCalloc
.static ktxVulkanTexture.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newktxVulkanTexture.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ktxVulkanTexture
calloc
(MemoryStack stack) Returns a newktxVulkanTexture
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ktxVulkanTexture
create()
Returns a newktxVulkanTexture
instance allocated withBufferUtils
.static ktxVulkanTexture.Buffer
create
(int capacity) Returns a newktxVulkanTexture.Buffer
instance allocated withBufferUtils
.static ktxVulkanTexture
create
(long address) Returns a newktxVulkanTexture
instance for the specified memory address.static ktxVulkanTexture.Buffer
create
(long address, int capacity) Create aktxVulkanTexture.Buffer
instance at the specified memory.static @Nullable ktxVulkanTexture
createSafe
(long address) static @Nullable ktxVulkanTexture.Buffer
createSafe
(long address, int capacity) int
depth()
long
int
height()
long
image()
int
int
int
int
static ktxVulkanTexture
malloc()
Returns a newktxVulkanTexture
instance allocated withmemAlloc
.static ktxVulkanTexture.Buffer
malloc
(int capacity) Returns a newktxVulkanTexture.Buffer
instance allocated withmemAlloc
.static ktxVulkanTexture.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newktxVulkanTexture.Buffer
instance allocated on the specifiedMemoryStack
.static ktxVulkanTexture
malloc
(MemoryStack stack) Returns a newktxVulkanTexture
instance allocated on the specifiedMemoryStack
.static long
nallocationId
(long struct) Unsafe version ofallocationId()
.static int
ndepth
(long struct) Unsafe version ofdepth()
.static long
ndeviceMemory
(long struct) Unsafe version ofdeviceMemory()
.static int
nheight
(long struct) Unsafe version ofheight()
.static long
nimage
(long struct) Unsafe version ofimage()
.static int
nimageFormat
(long struct) Unsafe version ofimageFormat()
.static int
nimageLayout
(long struct) Unsafe version ofimageLayout()
.static int
nlayerCount
(long struct) Unsafe version oflayerCount()
.static int
nlevelCount
(long struct) Unsafe version oflevelCount()
.static int
nviewType
(long struct) Unsafe version ofviewType()
.static long
nvkDestroyImage
(long struct) Unsafe version ofvkDestroyImage()
.static long
nvkFreeMemory
(long struct) Unsafe version ofvkFreeMemory()
.static int
nwidth
(long struct) Unsafe version ofwidth()
.int
sizeof()
Returnssizeof(struct)
.int
viewType()
long
long
int
width()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VKDESTROYIMAGE
public static final int VKDESTROYIMAGEThe struct member offsets. -
VKFREEMEMORY
public static final int VKFREEMEMORYThe struct member offsets. -
IMAGE
public static final int IMAGEThe struct member offsets. -
IMAGEFORMAT
public static final int IMAGEFORMATThe struct member offsets. -
IMAGELAYOUT
public static final int IMAGELAYOUTThe struct member offsets. -
DEVICEMEMORY
public static final int DEVICEMEMORYThe struct member offsets. -
VIEWTYPE
public static final int VIEWTYPEThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets. -
LEVELCOUNT
public static final int LEVELCOUNTThe struct member offsets. -
LAYERCOUNT
public static final int LAYERCOUNTThe struct member offsets. -
ALLOCATIONID
public static final int ALLOCATIONIDThe struct member offsets.
-
-
Constructor Details
-
ktxVulkanTexture
Creates aktxVulkanTexture
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ktxVulkanTexture>
-
vkDestroyImage
public long vkDestroyImage()- Returns:
- the value of the
vkDestroyImage
field.
-
vkFreeMemory
public long vkFreeMemory()- Returns:
- the value of the
vkFreeMemory
field.
-
image
public long image()- Returns:
- the value of the
image
field.
-
imageFormat
public int imageFormat()- Returns:
- the value of the
imageFormat
field.
-
imageLayout
public int imageLayout()- Returns:
- the value of the
imageLayout
field.
-
deviceMemory
public long deviceMemory()- Returns:
- the value of the
deviceMemory
field.
-
viewType
public int viewType()- Returns:
- the value of the
viewType
field.
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
depth
public int depth()- Returns:
- the value of the
depth
field.
-
levelCount
public int levelCount()- Returns:
- the value of the
levelCount
field.
-
layerCount
public int layerCount()- Returns:
- the value of the
layerCount
field.
-
allocationId
public long allocationId()- Returns:
- the value of the
allocationId
field.
-
malloc
Returns a newktxVulkanTexture
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newktxVulkanTexture
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newktxVulkanTexture
instance allocated withBufferUtils
. -
create
Returns a newktxVulkanTexture
instance for the specified memory address. -
createSafe
-
malloc
Returns a newktxVulkanTexture.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newktxVulkanTexture.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newktxVulkanTexture.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aktxVulkanTexture.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newktxVulkanTexture
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newktxVulkanTexture
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newktxVulkanTexture.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newktxVulkanTexture.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nvkDestroyImage
public static long nvkDestroyImage(long struct) Unsafe version ofvkDestroyImage()
. -
nvkFreeMemory
public static long nvkFreeMemory(long struct) Unsafe version ofvkFreeMemory()
. -
nimage
public static long nimage(long struct) Unsafe version ofimage()
. -
nimageFormat
public static int nimageFormat(long struct) Unsafe version ofimageFormat()
. -
nimageLayout
public static int nimageLayout(long struct) Unsafe version ofimageLayout()
. -
ndeviceMemory
public static long ndeviceMemory(long struct) Unsafe version ofdeviceMemory()
. -
nviewType
public static int nviewType(long struct) Unsafe version ofviewType()
. -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static int nheight(long struct) Unsafe version ofheight()
. -
ndepth
public static int ndepth(long struct) Unsafe version ofdepth()
. -
nlevelCount
public static int nlevelCount(long struct) Unsafe version oflevelCount()
. -
nlayerCount
public static int nlayerCount(long struct) Unsafe version oflayerCount()
. -
nallocationId
public static long nallocationId(long struct) Unsafe version ofallocationId()
.
-