MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / Validate

Method Validate

engine/3rdparty/vulkanmemoryallocator/include/vk_mem_alloc.h:6174–6187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6172}
6173
6174bool VmaDedicatedAllocationList::Validate()
6175{
6176 const size_t declaredCount = m_AllocationList.GetCount();
6177 size_t actualCount = 0;
6178 VmaMutexLockRead lock(m_Mutex, m_UseMutex);
6179 for (VmaAllocation alloc = m_AllocationList.Front();
6180 alloc != VMA_NULL; alloc = m_AllocationList.GetNext(alloc))
6181 {
6182 ++actualCount;
6183 }
6184 VMA_VALIDATE(actualCount == declaredCount);
6185
6186 return true;
6187}
6188
6189void VmaDedicatedAllocationList::AddDetailedStatistics(VmaDetailedStatistics& inoutStats)
6190{

Callers 4

AddStatisticsMethod · 0.80
AddDetailedStatisticsMethod · 0.80
FreeMethod · 0.80

Calls 11

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

Tested by

no test coverage detected