forked from eden-emu/eden
[video_core] Fix vulkan presentation semaphores.
The presentation semaphores should be associated with swapchain images instead.
This commit is contained in:
parent
2453fd4c78
commit
257a8465fa
1 changed files with 3 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue