Throw an exception when vkWaitForFences times out

This commit is contained in:
Guillaume Meunier
2024-01-07 11:45:07 +01:00
parent 7a093995f2
commit d6fe0b51a8
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -400,7 +400,8 @@ void scenes::lobby::render()
session.end_frame(framestate.predictedDisplayTime, layers_base);
device.waitForFences(*fence, VK_TRUE, UINT64_MAX);
if (device.waitForFences(*fence, VK_TRUE, UINT64_MAX) == vk::Result::eTimeout)
throw std::runtime_error("Vulkan fence timeout");
device.resetFences(*fence);
}