| 6355 | } |
| 6356 | |
| 6357 | bool 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 | |
| 6372 | void VmaDedicatedAllocationList::AddDetailedStatistics(VmaDetailedStatistics& inoutStats) |
| 6373 | { |
no test coverage detected