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

Method Validate

include/vk_mem_alloc.h:6846–6859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6844}
6845
6846bool VmaDedicatedAllocationList::Validate()
6847{
6848 const size_t declaredCount = m_AllocationList.GetCount();
6849 size_t actualCount = 0;
6850 VmaMutexLockRead lock(m_Mutex, m_UseMutex);
6851 for (VmaAllocation alloc = m_AllocationList.Front();
6852 alloc != VMA_NULL; alloc = m_AllocationList.GetNext(alloc))
6853 {
6854 ++actualCount;
6855 }
6856 VMA_VALIDATE(actualCount == declaredCount);
6857
6858 return true;
6859}
6860
6861void VmaDedicatedAllocationList::AddDetailedStatistics(VmaDetailedStatistics& inoutStats)
6862{

Callers 4

AddStatisticsMethod · 0.80
AddDetailedStatisticsMethod · 0.80
FreeMethod · 0.80

Calls 10

GetAllocHandleMethod · 0.80
IsFreeMethod · 0.80
StartValidationMethod · 0.80
FinishValidationMethod · 0.80
GetCountMethod · 0.45
FrontMethod · 0.45
GetNextMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected