src/ktx/libktx/vkloader.c
/**
 * @memberof ktxVulkanTexture
 * @~English
 * @brief Destructor for the object returned when loading a texture image.
 *
 * Frees the Vulkan resources created when the texture image was loaded.
 *
 * @param vkTexture  pointer to the ktxVulkanTexture to be destructed.
 * @param device     handle to the Vulkan logical device to which the texture was
 *                   loaded.
 * @param pAllocator pointer to the allocator used during loading.
 */
@memberof ktxVulkanTexture
@~English
@brief Destructor for the object returned when loading a texture image.

Frees the Vulkan resources created when the texture image was loaded.

@param vkTexture  pointer to the ktxVulkanTexture to be destructed.
@param device     handle to the Vulkan logical device to which the texture was
loaded.
@param pAllocator pointer to the allocator used during loading.
@memberof ktxVulkanTexture @~English @brief Destructor for the object returned when loading a texture image . Frees the Vulkan resources created when the texture image was loaded . @param vkTexture pointer to the ktxVulkanTexture to be destructed . @param device handle to the Vulkan logical device to which the texture was loaded . @param pAllocator pointer to the allocator used during loading .
void
ktxVulkanTexture_Destruct(ktxVulkanTexture* vkTexture, VkDevice device,
                          const VkAllocationCallbacks* pAllocator)
{
    vkDestroyImage(device, vkTexture->image, pAllocator);
    vkFreeMemory(device, vkTexture->deviceMemory, pAllocator);
}
void ktxVulkanTexture_Destruct ( ktxVulkanTexture * vkTexture , VkDevice device , const VkAllocationCallbacks * pAllocator ) { vkDestroyImage ( device , vkTexture -> image , pAllocator ) ; vkFreeMemory ( device , vkTexture -> deviceMemory , pAllocator ) ; }
@memberof ktxVulkanTexture
 @~English
 @brief Destructor for the object returned when loading a texture image.
@memberof ktxVulkanTexture @~English @brief Destructor for the object returned when loading a texture image .