summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/render.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render.c b/src/render.c
index e33ee41..591442f 100644
--- a/src/render.c
+++ b/src/render.c
@@ -1688,9 +1688,17 @@ close_vulkan()
vmaDestroyBuffer(s.vk.allocator, s.vertex_buffer.handle, s.vertex_buffer.allocation);
vmaDestroyBuffer(s.vk.allocator, s.index_buffer.handle, s.index_buffer.allocation);
+
vkDestroyPipeline(s.vk.device, s.graphics_pipeline.handle, NULL);
vkDestroyPipelineLayout(s.vk.device, s.graphics_pipeline.layout, NULL);
+ char * statsString;
+ vmaBuildStatsString(s.vk.allocator, &statsString, VK_TRUE);
+ printf("%s\n", statsString);
+ vmaFreeStatsString(s.vk.allocator, statsString);
+ free(statsString);
+ vmaDestroyAllocator(s.vk.allocator);
+
vks_destroy_vulkan_context(&s.vk);
if (s.prev_vert_result) {