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

Function DestroyAllocation

src/Tests.cpp:1345–1351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343}
1344
1345static void DestroyAllocation(const AllocInfo& allocation)
1346{
1347 if(allocation.m_Buffer)
1348 vmaDestroyBuffer(g_hAllocator, allocation.m_Buffer, allocation.m_Allocation);
1349 else
1350 vmaDestroyImage(g_hAllocator, allocation.m_Image, allocation.m_Allocation);
1351}
1352
1353static void DestroyAllAllocations(std::vector<AllocInfo>& allocations)
1354{

Callers 4

DestroyAllAllocationsFunction · 0.85
TestDefragmentationFullFunction · 0.85

Calls 2

vmaDestroyBufferFunction · 0.85
vmaDestroyImageFunction · 0.85

Tested by

no test coverage detected