mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
Do something
This commit is contained in:
parent
b21dad41cd
commit
3cf8697847
@ -1272,14 +1272,12 @@ namespace engine {
|
||||
for (uint32_t i = 0; i < memProps.memoryProperties.memoryHeapCount; i++) {
|
||||
const VmaStatistics& statistics = pStats.memoryType[i].statistics;
|
||||
VkMemoryHeap heap = memProps.memoryProperties.memoryHeaps[i];
|
||||
if (statistics.allocationCount > 0) {
|
||||
LOG_INFO("Memory heap {}", i);
|
||||
LOG_INFO(" Memory blocks allocated: {} ({} MiB)", statistics.blockCount, statistics.allocationBytes / (1024 * 1024));
|
||||
LOG_INFO(" Number of allocations: {} ({} MiB)", statistics.allocationCount, statistics.allocationBytes / (1024 * 1024));
|
||||
LOG_INFO(" Max size: {} MiB", heap.size / (1024 * 1024));
|
||||
if (heap.flags & VK_MEMORY_HEAP_DEVICE_LOCAL_BIT) {
|
||||
LOG_INFO(" DEVICE_LOCAL");
|
||||
}
|
||||
LOG_INFO("Memory heap {}", i);
|
||||
LOG_INFO(" Memory blocks allocated: {} ({} MiB)", statistics.blockCount, statistics.allocationBytes / (1024 * 1024));
|
||||
LOG_INFO(" Number of allocations: {} ({} MiB)", statistics.allocationCount, statistics.allocationBytes / (1024 * 1024));
|
||||
LOG_INFO(" Max size: {} MiB", heap.size / (1024 * 1024));
|
||||
if (heap.flags & VK_MEMORY_HEAP_DEVICE_LOCAL_BIT) {
|
||||
LOG_INFO(" DEVICE_LOCAL");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user