MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / shutdown

Function shutdown

framework/core/allocated.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void 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

Callers 3

~DeviceMethod · 0.85
~ThreadPoolMethod · 0.85
resizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected