mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
fix(hal/vulkan): propagate wait_for_fence timeout
This commit is contained in:
1 parent
2640d038e2
commit
02e00a1f4d
1 file changed
+4
-1
@@ -420,11 +420,14 @@ impl Swapchain for NativeSwapchain {
|
||||
// thus waited for `locked_swapchain_semaphores.acquire`, wait for all
|
||||
// of them to finish, thus ensuring that it's okay to pass `acquire` to
|
||||
// `vkAcquireNextImageKHR` again.
|
||||
self.device.wait_for_fence(
|
||||
let completed = self.device.wait_for_fence(
|
||||
fence,
|
||||
acquire_semaphore_guard.previously_used_submission_index,
|
||||
timeout_ns,
|
||||
)?;
|
||||
if !completed {
|
||||
return Err(crate::SurfaceError::Timeout);
|
||||
}
|
||||
|
||||
// will block if no image is available
|
||||
let (index, suboptimal) = match unsafe {
|
||||
|
||||
Reference in new issue
Block a user