summaryrefslogtreecommitdiff
path: root/ext/webgpu/error.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-05-05 07:22:18 -0700
committerGitHub <noreply@github.com>2024-05-05 07:22:18 -0700
commitcd12d416271e9e9fd0f00303525021f75688ff9f (patch)
treeaf1fd7a88590e37b09e61ae5a1aaeec4c325b907 /ext/webgpu/error.rs
parentb2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (diff)
chore: update wgpu (#23684)
Diffstat (limited to 'ext/webgpu/error.rs')
-rw-r--r--ext/webgpu/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/webgpu/error.rs b/ext/webgpu/error.rs
index 5d8abb4a3..5b55d506a 100644
--- a/ext/webgpu/error.rs
+++ b/ext/webgpu/error.rs
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+
use deno_core::error::AnyError;
use deno_core::ResourceId;
use serde::Serialize;
@@ -89,6 +90,7 @@ pub enum WebGpuError {
Lost,
OutOfMemory,
Validation(String),
+ Internal,
}
impl From<CreateBufferError> for WebGpuError {
@@ -106,9 +108,7 @@ impl From<DeviceError> for WebGpuError {
match err {
DeviceError::Lost => WebGpuError::Lost,
DeviceError::OutOfMemory => WebGpuError::OutOfMemory,
- DeviceError::ResourceCreationFailed
- | DeviceError::Invalid
- | DeviceError::WrongDevice => WebGpuError::Validation(fmt_err(&err)),
+ _ => WebGpuError::Validation(fmt_err(&err)),
}
}
}