1 #ifndef MSP_GL_VULKAN_DESTROYQUEUE_H_
2 #define MSP_GL_VULKAN_DESTROYQUEUE_H_
11 class VulkanFunctions;
19 void (*destroy_func)(const VulkanFunctions &, void *) = 0;
20 unsigned memory_id = 0;
21 unsigned on_frame = 0;
25 std::deque<Entry> queue;
26 unsigned current_frame = 0;
29 DestroyQueue(Device &);
32 void destroy(VkBuffer, unsigned);
33 void destroy(VkFence);
34 void destroy(VkFramebuffer);
35 void destroy(VkImageView);
36 void destroy(VkSemaphore);
39 template<typename T, void (VulkanFunctions::*)(T) const>
40 void destroy(T, unsigned = 0);