1
0
Fork 0
forked from wry/wry

vulkan: implement Context::reset_status

This commit is contained in:
Julian Orth 2025-03-08 19:51:54 +01:00
parent 9e20e32338
commit 5be253dec2
6 changed files with 28 additions and 4 deletions

View file

@ -1610,6 +1610,7 @@ impl VulkanRenderer {
slice::from_ref(&submit_info),
release_fence.fence,
)
.inspect_err(self.device.idl())
.map_err(VulkanError::Submit)?;
}
zone!("export_sync_file");
@ -1919,6 +1920,7 @@ impl VulkanRenderer {
log::warn!("Blocking.");
unsafe {
if let Err(e) = self.device.device.device_wait_idle() {
self.device.idl()(&e);
log::error!("Could not wait for device idle: {}", ErrorFmt(e));
}
}