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
|
#else
|
||||||
VkSurfaceKHR_T* surface_handle,
|
VkSurfaceKHR_T* surface_handle,
|
||||||
#endif
|
#endif
|
||||||
const Device& device,
|
const Device& device, Scheduler& scheduler, u32 width, u32 height);
|
||||||
Scheduler& scheduler,
|
|
||||||
u32 width,
|
|
||||||
u32 height);
|
|
||||||
~Swapchain();
|
~Swapchain();
|
||||||
|
|
||||||
/// Creates (or recreates) the swapchain with a given size.
|
/// Creates (or recreates) the swapchain with a given size.
|
||||||
|
@ -40,8 +37,7 @@ public:
|
||||||
#else
|
#else
|
||||||
VkSurfaceKHR_T* surface_handle,
|
VkSurfaceKHR_T* surface_handle,
|
||||||
#endif
|
#endif
|
||||||
u32 width,
|
u32 width, u32 height);
|
||||||
u32 height);
|
|
||||||
|
|
||||||
/// Acquires the next image in the swapchain, waits as needed.
|
/// Acquires the next image in the swapchain, waits as needed.
|
||||||
bool AcquireNextImage();
|
bool AcquireNextImage();
|
||||||
|
@ -101,7 +97,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
VkSemaphore CurrentRenderSemaphore() const {
|
VkSemaphore CurrentRenderSemaphore() const {
|
||||||
return *render_semaphores[frame_index];
|
return *render_semaphores[image_index];
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 GetWidth() const {
|
u32 GetWidth() const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue