[video_core] Fix vulkan presentation semaphores.

The presentation semaphores should be associated with swapchain images instead.
This commit is contained in:
weakboson 2025-07-23 18:26:00 +08:00
parent 2453fd4c78
commit 257a8465fa

View file

@ -27,10 +27,7 @@ public:
#else
VkSurfaceKHR_T* surface_handle,
#endif
const Device& device,
Scheduler& scheduler,
u32 width,
u32 height);
const Device& device, Scheduler& scheduler, u32 width, u32 height);
~Swapchain();
/// Creates (or recreates) the swapchain with a given size.
@ -40,8 +37,7 @@ public:
#else
VkSurfaceKHR_T* surface_handle,
#endif
u32 width,
u32 height);
u32 width, u32 height);
/// Acquires the next image in the swapchain, waits as needed.
bool AcquireNextImage();
@ -101,7 +97,7 @@ public:
}
VkSemaphore CurrentRenderSemaphore() const {
return *render_semaphores[frame_index];
return *render_semaphores[image_index];
}
u32 GetWidth() const {