| 6844 | } |
| 6845 | |
| 6846 | bool 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 | |
| 6861 | void VmaDedicatedAllocationList::AddDetailedStatistics(VmaDetailedStatistics& inoutStats) |
| 6862 | { |
no test coverage detected