Throw an exception when vkWaitForFences times out
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user