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

Method RemoveAllocation

include/vk_mem_alloc.h:10394–10403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10392}
10393
10394void VmaCurrentBudgetData::RemoveAllocation(uint32_t heapIndex, VkDeviceSize allocationSize)
10395{
10396 VMA_ASSERT(m_AllocationBytes[heapIndex] >= allocationSize);
10397 m_AllocationBytes[heapIndex] -= allocationSize;
10398 VMA_ASSERT(m_AllocationCount[heapIndex] > 0);
10399 --m_AllocationCount[heapIndex];
10400#if VMA_MEMORY_BUDGET
10401 ++m_OperationsSinceBudgetFetch;
10402#endif
10403}
10404#endif // _VMA_CURRENT_BUDGET_DATA_FUNCTIONS
10405#endif // _VMA_CURRENT_BUDGET_DATA
10406

Callers 3

FreeMethod · 0.80
FreeDedicatedMemoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected