mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +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
@@ -1510,10 +1510,12 @@ pub struct RenderBundleError {
|
||||
}
|
||||
|
||||
impl RenderBundleError {
|
||||
pub(crate) const INVALID_DEVICE: Self = RenderBundleError {
|
||||
scope: PassErrorScope::Bundle,
|
||||
inner: RenderBundleErrorInner::Device(DeviceError::Invalid),
|
||||
};
|
||||
pub fn from_device_error(e: DeviceError) -> Self {
|
||||
Self {
|
||||
scope: PassErrorScope::Bundle,
|
||||
inner: e.into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
impl PrettyError for RenderBundleError {
|
||||
fn fmt_pretty(&self, fmt: &mut ErrorFormatter) {
|
||||
|
||||
Reference in new issue
Block a user