| 17077 | } |
| 17078 | |
| 17079 | VMA_CALL_PRE void VMA_CALL_POST vmaDestroyImage( |
| 17080 | VmaAllocator VMA_NOT_NULL allocator, |
| 17081 | VkImage VMA_NULLABLE_NON_DISPATCHABLE image, |
| 17082 | VmaAllocation VMA_NULLABLE allocation) |
| 17083 | { |
| 17084 | VMA_ASSERT(allocator); |
| 17085 | |
| 17086 | if(image == VK_NULL_HANDLE && allocation == VK_NULL_HANDLE) |
| 17087 | { |
| 17088 | return; |
| 17089 | } |
| 17090 | |
| 17091 | VMA_DEBUG_LOG("vmaDestroyImage"); |
| 17092 | |
| 17093 | VMA_DEBUG_GLOBAL_MUTEX_LOCK |
| 17094 | |
| 17095 | if(image != VK_NULL_HANDLE) |
| 17096 | { |
| 17097 | (*allocator->GetVulkanFunctions().vkDestroyImage)(allocator->m_hDevice, image, allocator->GetAllocationCallbacks()); |
| 17098 | } |
| 17099 | if(allocation != VK_NULL_HANDLE) |
| 17100 | { |
| 17101 | allocator->FreeMemory( |
| 17102 | 1, // allocationCount |
| 17103 | &allocation); |
| 17104 | } |
| 17105 | } |
| 17106 | |
| 17107 | VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateVirtualBlock( |
| 17108 | const VmaVirtualBlockCreateInfo* VMA_NOT_NULL pCreateInfo, |