Avoids passing a large number of parameters to each loading function. Use of VulkanDeviceInfo_Create or VulkanDeviceInfo_Construct to populate
this structure is highly recommended.
ktxVulkanDeviceInfo vdi;
ktxVulkanTexture texture;
vdi = ktxVulkanDeviceInfo_create(physicalDevice,
device,
queue,
cmdPool,
&allocator);
ktxLoadVkTextureN("texture_1.ktx", vdi, &texture, NULL, NULL);
// ...
ktxLoadVkTextureN("texture_n.ktx", vdi, &texture, NULL, NULL);
ktxVulkanDeviceInfo_destroy(vdi);
struct ktxVulkanDeviceInfo {
VkInstance instance;
VkPhysicalDevice physicalDevice;
VkDevice device;
VkQueue queue;
VkCommandBuffer cmdBuffer;
VkCommandPool cmdPool;
VkAllocationCallbacks const * pAllocator;
VkPhysicalDeviceMemoryProperties deviceMemoryProperties;
ktxVulkanFunctions vkFuncs;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | ktxVulkanDeviceInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CMDBUFFER
The struct member offsets. |
| public static final int | CMDPOOL
The struct member offsets. |
| public static final int | DEVICE
The struct member offsets. |
| public static final int | DEVICEMEMORYPROPERTIES
The struct member offsets. |
| public static final int | INSTANCE
The struct member offsets. |
| public static final int | PALLOCATOR
The struct member offsets. |
| public static final int | PHYSICALDEVICE
The struct member offsets. |
| public static final int | QUEUE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VKFUNCS
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | ktxVulkanDeviceInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static ktxVulkanDeviceInfo | |
| public static ktxVulkanDeviceInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static ktxVulkanDeviceInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static ktxVulkanDeviceInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public ktxVulkanDeviceInfo | |
| public long | |
| public ktxVulkanDeviceInfo | |
| protected ktxVulkanDeviceInfo | 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 ktxVulkanDeviceInfo | |
| public static ktxVulkanDeviceInfo | |
| public static ktxVulkanDeviceInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static ktxVulkanDeviceInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static ktxVulkanDeviceInfo | |
| public static ktxVulkanDeviceInfo. | |
| public long | |
| public ktxVulkanDeviceInfo | |
| public VkPhysicalDeviceMemoryProperties | |
| public ktxVulkanDeviceInfo | deviceMemoryProperties(VkPhysicalDeviceMemoryProperties value)
Copies the specified |
| public long | |
| public ktxVulkanDeviceInfo | |
| public static ktxVulkanDeviceInfo | |
| public static ktxVulkanDeviceInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static ktxVulkanDeviceInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static ktxVulkanDeviceInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static VkPhysicalDeviceMemoryProperties | |
| public static void | ndeviceMemoryProperties(long struct, VkPhysicalDeviceMemoryProperties value)
Unsafe version of |
| public static long | |
| public static void | |
| public static VkAllocationCallbacks | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static ktxVulkanFunctions | |
| public static void | |
| public VkAllocationCallbacks | |
| public ktxVulkanDeviceInfo | pAllocator(VkAllocationCallbacks value)
Sets the address of the specified |
| public long | |
| public ktxVulkanDeviceInfo | |
| public long | |
| public ktxVulkanDeviceInfo | |
| public ktxVulkanDeviceInfo | set(VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device, VkQueue queue, VkCommandBuffer cmdBuffer, long cmdPool, VkAllocationCallbacks pAllocator, VkPhysicalDeviceMemoryProperties deviceMemoryProperties, ktxVulkanFunctions vkFuncs)
Initializes this struct with the specified values. |
| public ktxVulkanDeviceInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void | |
| public ktxVulkanFunctions | |
| public ktxVulkanDeviceInfo | |
| public ktxVulkanDeviceInfo |