| 6381 | } |
| 6382 | |
| 6383 | void VmaDedicatedAllocationList::AddStatistics(VmaStatistics& inoutStats) |
| 6384 | { |
| 6385 | VmaMutexLockRead lock(m_Mutex, m_UseMutex); |
| 6386 | |
| 6387 | const uint32_t allocCount = (uint32_t)m_AllocationList.GetCount(); |
| 6388 | inoutStats.blockCount += allocCount; |
| 6389 | inoutStats.allocationCount += allocCount; |
| 6390 | |
| 6391 | for(auto* item = m_AllocationList.Front(); item != VMA_NULL; item = DedicatedAllocationLinkedList::GetNext(item)) |
| 6392 | { |
| 6393 | const VkDeviceSize size = item->GetSize(); |
| 6394 | inoutStats.blockBytes += size; |
| 6395 | inoutStats.allocationBytes += size; |
| 6396 | } |
| 6397 | } |
| 6398 | |
| 6399 | #if VMA_STATS_STRING_ENABLED |
| 6400 | void VmaDedicatedAllocationList::BuildStatsString(VmaJsonWriter& json) |