mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 23:41:01 +01:00
introduce Device.check_is_valid
This commit is contained in:
1 parent
508ece312d
commit
edc2cd9615
9 files changed
+84
-98
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user