X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fdestroyqueue.cpp;h=32ec5cff580bd32ce2e8e0c72d9c2f4a8d14e7c0;hb=7c17e52fbd532ec4db556b69b520d9372076e86d;hp=bdfea43253418e833ca64c1865fee15bbfdd98eb;hpb=99ca354f18119f82f1adeca100cd665a8f640317;p=libs%2Fgl.git diff --git a/source/backends/vulkan/destroyqueue.cpp b/source/backends/vulkan/destroyqueue.cpp index bdfea432..32ec5cff 100644 --- a/source/backends/vulkan/destroyqueue.cpp +++ b/source/backends/vulkan/destroyqueue.cpp @@ -30,11 +30,21 @@ void DestroyQueue::destroy(VkFramebuffer handle) destroy(handle); } +void DestroyQueue::destroy(VkImage handle, unsigned mem_id) +{ + destroy(handle, mem_id); +} + void DestroyQueue::destroy(VkImageView handle) { destroy(handle); } +void DestroyQueue::destroy(VkSampler handle) +{ + destroy(handle); +} + void DestroyQueue::destroy(VkSemaphore handle) { destroy(handle); @@ -56,7 +66,6 @@ void DestroyQueue::tick() const VulkanFunctions &vk = device.get_functions(); MemoryAllocator &allocator = device.get_allocator(); - ++current_frame; while(!queue.empty() && current_frame>=queue.front().on_frame) { const Entry &e = queue.front(); @@ -65,6 +74,8 @@ void DestroyQueue::tick() allocator.release(e.memory_id); queue.pop_front(); } + + ++current_frame; } } // namespace GL