MCPcopy Create free account
hub / github.com/defold/defold / DestroyTexture

Function DestroyTexture

engine/graphics/src/vulkan/graphics_vulkan_device.cpp:1505–1519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1503 }
1504
1505 void DestroyTexture(VkDevice vk_device, VulkanTexture::VulkanHandle* handle)
1506 {
1507 assert(handle);
1508 if (handle->m_ImageView != VK_NULL_HANDLE)
1509 {
1510 vkDestroyImageView(vk_device, handle->m_ImageView, 0);
1511 handle->m_ImageView = VK_NULL_HANDLE;
1512 }
1513
1514 if (handle->m_Image != VK_NULL_HANDLE)
1515 {
1516 vkDestroyImage(vk_device, handle->m_Image, 0);
1517 handle->m_Image = VK_NULL_HANDLE;
1518 }
1519 }
1520
1521 void DestroyTextureSampler(VkDevice vk_device, TextureSampler* sampler)
1522 {

Callers 6

UpdateSwapChainFunction · 0.70
DestroySwapChainFunction · 0.70
SwapChainChangedFunction · 0.70
VulkanDestroyResourcesFunction · 0.70
CreateTextureFunction · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected