free the allocated memory
[demo] / src / vulkan / allocator.cc
index 9d71e9b..714b7cc 100644 (file)
@@ -25,3 +25,8 @@ bool vku_allocate(int size, DevMemBlock *block)
 
        return true;
 }
+
+void vku_free(VkDeviceMemory gpu_memory)
+{
+       vkFreeMemory(vk_device, gpu_memory, 0);
+}