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(VkDescriptorPool);
34 void destroy(VkFence);
35 void destroy(VkFramebuffer);
36 void destroy(VkImage, unsigned);
37 void destroy(VkImageView);
38 void destroy(VkSampler);
39 void destroy(VkSemaphore);
42 template<typename T, void (VulkanFunctions::*)(T) const>
43 void destroy(T, unsigned = 0);