| 6870 | } |
| 6871 | |
| 6872 | void VmaDedicatedAllocationList::AddStatistics(VmaStatistics& inoutStats) |
| 6873 | { |
| 6874 | VmaMutexLockRead lock(m_Mutex, m_UseMutex); |
| 6875 | |
| 6876 | const uint32_t allocCount = (uint32_t)m_AllocationList.GetCount(); |
| 6877 | inoutStats.blockCount += allocCount; |
| 6878 | inoutStats.allocationCount += allocCount; |
| 6879 | |
| 6880 | for(auto* item = m_AllocationList.Front(); item != VMA_NULL; item = DedicatedAllocationLinkedList::GetNext(item)) |
| 6881 | { |
| 6882 | const VkDeviceSize size = item->GetSize(); |
| 6883 | inoutStats.blockBytes += size; |
| 6884 | inoutStats.allocationBytes += size; |
| 6885 | } |
| 6886 | } |
| 6887 | |
| 6888 | #if VMA_STATS_STRING_ENABLED |
| 6889 | void VmaDedicatedAllocationList::BuildStatsString(VmaJsonWriter& json) |