introduce Device.check_is_valid

This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2024-06-19 14:05:18 +02:00
1 parent 508ece312d
commit edc2cd9615
9 files changed
+84 -98

No files matched your search

+1 -3
View File
@@ -1368,9 +1368,7 @@ impl Global {
});
}
if !device.is_valid() {
return Err(DeviceError::Lost).map_pass_err(pass_scope);
}
device.check_is_valid().map_pass_err(pass_scope)?;
let encoder = &mut cmd_buf_data.encoder;
let status = &mut cmd_buf_data.status;