MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Validate

Method Validate

Source/ThirdParty/VulkanMemoryAllocator/vk_mem_alloc.h:6357–6370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6355}
6356
6357bool VmaDedicatedAllocationList::Validate()
6358{
6359 const size_t declaredCount = m_AllocationList.GetCount();
6360 size_t actualCount = 0;
6361 VmaMutexLockRead lock(m_Mutex, m_UseMutex);
6362 for (VmaAllocation alloc = m_AllocationList.Front();
6363 alloc != VMA_NULL; alloc = m_AllocationList.GetNext(alloc))
6364 {
6365 ++actualCount;
6366 }
6367 VMA_VALIDATE(actualCount == declaredCount);
6368
6369 return true;
6370}
6371
6372void VmaDedicatedAllocationList::AddDetailedStatistics(VmaDetailedStatistics& inoutStats)
6373{

Callers 4

AddStatisticsMethod · 0.45
AddDetailedStatisticsMethod · 0.45
FreeMethod · 0.45

Calls 13

IsVirtualFunction · 0.85
backMethod · 0.80
GetAllocHandleMethod · 0.80
StartValidationMethod · 0.80
FinishValidationMethod · 0.80
GetSizeFunction · 0.50
GetCountMethod · 0.45
FrontMethod · 0.45
GetNextMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected