| 6172 | } |
| 6173 | |
| 6174 | bool 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 | |
| 6189 | void VmaDedicatedAllocationList::AddDetailedStatistics(VmaDetailedStatistics& inoutStats) |
| 6190 | { |
no test coverage detected