Vulkan: Fix present semaphores reuse

Fixes validation errors.
See https://docs.vulkan.org/guide/latest/swapchain_semaphore_reuse.html
This commit is contained in:
Martino Fontana committed 2025-07-21 16:02:53 +02:00
1 parent 5cc0a5a3be
commit b80e178403
4 files changed
+35 -22

No files matched your search

@@ -39,6 +39,7 @@ public:
u32 GetHeight() const { return m_height; }
u32 GetCurrentImageIndex() const { return m_current_swap_chain_image_index; }
bool IsCurrentImageValid() const { return m_current_swap_chain_image_is_valid; }
size_t GetSwapChainImageCount() const { return m_swap_chain_images.size(); }
VkImage GetCurrentImage() const
{
return m_swap_chain_images[m_current_swap_chain_image_index].image;