ktxTexture_VkUpload* functions.
Creation of these objects is internal to the upload functions.
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | ktxVulkanTexture.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DEPTH
The struct member offsets. |
| public static final int | DEVICEMEMORY
The struct member offsets. |
| public static final int | HEIGHT
The struct member offsets. |
| public static final int | IMAGE
The struct member offsets. |
| public static final int | IMAGEFORMAT
The struct member offsets. |
| public static final int | IMAGELAYOUT
The struct member offsets. |
| public static final int | LAYERCOUNT
The struct member offsets. |
| public static final int | LEVELCOUNT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VIEWTYPE
The struct member offsets. |
| public static final int | VKDESTROYIMAGE
The struct member offsets. |
| public static final int | VKFREEMEMORY
The struct member offsets. |
| public static final int | WIDTH
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | ktxVulkanTexture(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static ktxVulkanTexture | |
| public static ktxVulkanTexture. | calloc(int
the buffer capacity capacity)Returns a new |
| public static ktxVulkanTexture | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static ktxVulkanTexture. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected ktxVulkanTexture | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static ktxVulkanTexture | |
| public static ktxVulkanTexture | |
| public static ktxVulkanTexture. | create(int
the buffer capacity capacity)Returns a new |
| public static ktxVulkanTexture. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static ktxVulkanTexture | |
| public static ktxVulkanTexture. | |
| public int | |
| public long | |
| public int | |
| public long | |
| public int | |
| public int | |
| public int | |
| public int | |
| public static ktxVulkanTexture | |
| public static ktxVulkanTexture. | malloc(int
the buffer capacity capacity)Returns a new |
| public static ktxVulkanTexture | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static ktxVulkanTexture. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static long | |
| public static int | |
| public static long | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static long | |
| public static long | |
| public static int | |
| public int | |
| public int | |
| public long | |
| public long | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DEPTH | back to summary |
|---|---|
| public static final int DEPTH The struct member offsets. | |
| DEVICEMEMORY | back to summary |
|---|---|
| public static final int DEVICEMEMORY The struct member offsets. | |
| HEIGHT | back to summary |
|---|---|
| public static final int HEIGHT The struct member offsets. | |
| IMAGE | back to summary |
|---|---|
| public static final int IMAGE The struct member offsets. | |
| IMAGEFORMAT | back to summary |
|---|---|
| public static final int IMAGEFORMAT The struct member offsets. | |
| IMAGELAYOUT | back to summary |
|---|---|
| public static final int IMAGELAYOUT The struct member offsets. | |
| LAYERCOUNT | back to summary |
|---|---|
| public static final int LAYERCOUNT The struct member offsets. | |
| LEVELCOUNT | back to summary |
|---|---|
| public static final int LEVELCOUNT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VIEWTYPE | back to summary |
|---|---|
| public static final int VIEWTYPE The struct member offsets. | |
| VKDESTROYIMAGE | back to summary |
|---|---|
| public static final int VKDESTROYIMAGE The struct member offsets. | |
| VKFREEMEMORY | back to summary |
|---|---|
| public static final int VKFREEMEMORY The struct member offsets. | |
| WIDTH | back to summary |
|---|---|
| public static final int WIDTH The struct member offsets. | |
| ktxVulkanTexture | back to summary |
|---|---|
| protected ktxVulkanTexture(long address, ByteBuffer container) | |
| ktxVulkanTexture | back to summary |
|---|---|
| public ktxVulkanTexture(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static ktxVulkanTexture calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static ktxVulkanTexture. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static ktxVulkanTexture calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static ktxVulkanTexture. Returns a new
| |
| create | back to summary |
|---|---|
| protected ktxVulkanTexture create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static ktxVulkanTexture create() Returns a new | |
| create | back to summary |
|---|---|
| public static ktxVulkanTexture create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static ktxVulkanTexture. Returns a new
| |
| create | back to summary |
|---|---|
| public static ktxVulkanTexture. Create a
| |
| createSafe | back to summary |
|---|---|
| public static ktxVulkanTexture createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static ktxVulkanTexture. Like
| |
| depth | back to summary |
|---|---|
| public int depth() the depth of the image
| |
| deviceMemory | back to summary |
|---|---|
| public long deviceMemory() the memory allocated for the image on the Vulkan device
| |
| height | back to summary |
|---|---|
| public int height() the height of the image
| |
| image | back to summary |
|---|---|
| public long image() handle to the Vulkan image created by the loader
| |
| imageFormat | back to summary |
|---|---|
| public int imageFormat() format of the image data
| |
| imageLayout | back to summary |
|---|---|
| public int imageLayout() layout of the created image. Has the same value as
| |
| layerCount | back to summary |
|---|---|
| public int layerCount() the number of array layers in the image
| |
| levelCount | back to summary |
|---|---|
| public int levelCount() the number of MIP levels in the image
| |
| malloc | back to summary |
|---|---|
| public static ktxVulkanTexture malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static ktxVulkanTexture. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static ktxVulkanTexture malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static ktxVulkanTexture. Returns a new
| |
| ndepth | back to summary |
|---|---|
| public static int ndepth(long struct) Unsafe version of | |
| ndeviceMemory | back to summary |
|---|---|
| public static long ndeviceMemory(long struct) Unsafe version of | |
| nheight | back to summary |
|---|---|
| public static int nheight(long struct) Unsafe version of | |
| nimage | back to summary |
|---|---|
| public static long nimage(long struct) Unsafe version of | |
| nimageFormat | back to summary |
|---|---|
| public static int nimageFormat(long struct) Unsafe version of | |
| nimageLayout | back to summary |
|---|---|
| public static int nimageLayout(long struct) Unsafe version of | |
| nlayerCount | back to summary |
|---|---|
| public static int nlayerCount(long struct) Unsafe version of | |
| nlevelCount | back to summary |
|---|---|
| public static int nlevelCount(long struct) Unsafe version of | |
| nviewType | back to summary |
|---|---|
| public static int nviewType(long struct) Unsafe version of | |
| nvkDestroyImage | back to summary |
|---|---|
| public static long nvkDestroyImage(long struct) Unsafe version of | |
| nvkFreeMemory | back to summary |
|---|---|
| public static long nvkFreeMemory(long struct) Unsafe version of | |
| nwidth | back to summary |
|---|---|
| public static int nwidth(long struct) Unsafe version of | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| viewType | back to summary |
|---|---|
| public int viewType() viewType corresponding to
| |
| vkDestroyImage | back to summary |
|---|---|
| public long vkDestroyImage() pointer to
| |
| vkFreeMemory | back to summary |
|---|---|
| public long vkFreeMemory() pointer to
| |
| width | back to summary |
|---|---|
| public int width() the width of the image
| |
ktxVulkanTexture structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final ktxVulkanTexture |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public long | |
| protected ktxVulkanTexture | |
| public int | |
| public long | |
| public int | |
| public int | |
| public int | |
| public int | |
| protected ktxVulkanTexture. | |
| public int | |
| public long | |
| public long | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final ktxVulkanTexture ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| depth | back to summary |
|---|---|
public int depth()
| |
| deviceMemory | back to summary |
|---|---|
public long deviceMemory()
| |
| getElementFactory | back to summary |
|---|---|
| protected ktxVulkanTexture getElementFactory() Implements abstract org.
| |
| height | back to summary |
|---|---|
public int height()
| |
| image | back to summary |
|---|---|
public long image()
| |
| imageFormat | back to summary |
|---|---|
public int imageFormat()
| |
| imageLayout | back to summary |
|---|---|
public int imageLayout()
| |
| layerCount | back to summary |
|---|---|
public int layerCount()
| |
| levelCount | back to summary |
|---|---|
public int levelCount()
| |
| self | back to summary |
|---|---|
| protected ktxVulkanTexture. Implements abstract org.
| |
| viewType | back to summary |
|---|---|
public int viewType()
| |
| vkDestroyImage | back to summary |
|---|---|
public long vkDestroyImage()
| |
| vkFreeMemory | back to summary |
|---|---|
public long vkFreeMemory()
| |
| width | back to summary |
|---|---|
public int width()
| |