| 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 | { |
no test coverage detected