| 45 | } |
| 46 | |
| 47 | void shutdown() |
| 48 | { |
| 49 | auto &allocator = get_memory_allocator(); |
| 50 | if (allocator != VK_NULL_HANDLE) |
| 51 | { |
| 52 | VmaTotalStatistics stats; |
| 53 | vmaCalculateStatistics(allocator, &stats); |
| 54 | LOGI("Total device memory leaked: {} bytes.", stats.total.statistics.allocationBytes); |
| 55 | vmaDestroyAllocator(allocator); |
| 56 | allocator = VK_NULL_HANDLE; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | } // namespace allocated |
| 61 | } // namespace vkb |
no outgoing calls
no test coverage detected