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

+6 -4
View File
@@ -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) {