MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / DestroyResources

Method DestroyResources

src/Tests.cpp:5667–5681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5665 }
5666 Item& operator=(const Item& src) = delete;
5667 void DestroyResources()
5668 {
5669 if(Buf)
5670 {
5671 assert(Image == VK_NULL_HANDLE);
5672 vmaDestroyBuffer(g_hAllocator, Buf, Alloc);
5673 Buf = VK_NULL_HANDLE;
5674 }
5675 else
5676 {
5677 vmaDestroyImage(g_hAllocator, Image, Alloc);
5678 Image = VK_NULL_HANDLE;
5679 }
5680 Alloc = VK_NULL_HANDLE;
5681 }
5682 VkDeviceSize CalcSizeBytes() const
5683 {
5684 return BufferSize +

Callers 1

TestPool_BenchmarkFunction · 0.80

Calls 2

vmaDestroyBufferFunction · 0.85
vmaDestroyImageFunction · 0.85

Tested by

no test coverage detected