![]() |
libktx Reference 4.4.2
Libraries and tools to create and read KTX image texture files.
|
Struct for returning information about the Vulkan texture image created by the ktxTexture_VkUpload* functions. More...
#include <ktxvulkan.h>
Public Member Functions | |
| ktx_error_code_e | ktxVulkanTexture_Destruct_WithSuballocator (ktxVulkanTexture *vkTexture, VkDevice device, const VkAllocationCallbacks *pAllocator, ktxVulkanTexture_subAllocatorCallbacks *subAllocatorCallbacks) |
| Destructor for the object returned when loading a texture image. | |
| void | ktxVulkanTexture_Destruct (ktxVulkanTexture *vkTexture, VkDevice device, const VkAllocationCallbacks *pAllocator) |
| Destructor for the object returned when loading a texture image. | |
Data Fields | |
| 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 |
Struct for returning information about the Vulkan texture image created by the ktxTexture_VkUpload* functions.
Creation of these objects is internal to the upload functions.
| uint64_t allocationId |
An id referencing suballocation(s).
| uint32_t depth |
The depth of the image.
| VkDeviceMemory deviceMemory |
The memory (sub)allocation for the image on the Vulkan device. Will not be used with suballocators.
| uint32_t height |
The height of the image.
| VkImage image |
Handle to the Vulkan image created by the loader.
| VkFormat imageFormat |
Format of the image data.
| VkImageLayout imageLayout |
Layout of the created image. Has the same value as layout parameter passed to the loader.
| uint32_t layerCount |
The number of array layers in the image.
| uint32_t levelCount |
The number of MIP levels in the image.
| VkImageViewType viewType |
ViewType corresponding to image. Reflects the dimensionality, cubeness and arrayness of the image.
| PFN_vkDestroyImage vkDestroyImage |
Pointer to vkDestroyImage function
| PFN_vkFreeMemory vkFreeMemory |
Pointer to vkFreeMemory function
| uint32_t width |
The width of the image.