Skip to content

Commit 7ff0bd7

Browse files
fix!: remove WebGpuError impl. for Request{Adapter,Device}Error
1 parent c7e6170 commit 7ff0bd7

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

wgpu-core/src/instance.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -868,18 +868,6 @@ pub enum RequestDeviceError {
868868
UnsupportedFeature(wgt::Features),
869869
}
870870

871-
impl WebGpuError for RequestDeviceError {
872-
fn webgpu_error_type(&self) -> ErrorType {
873-
let e: &dyn WebGpuError = match self {
874-
Self::Device(e) => e,
875-
Self::LimitsExceeded(e) => e,
876-
Self::TimestampNormalizerInitFailed(e) => e,
877-
Self::UnsupportedFeature(_) => return ErrorType::Validation,
878-
};
879-
e.webgpu_error_type()
880-
}
881-
}
882-
883871
#[derive(Clone, Debug, Error)]
884872
#[non_exhaustive]
885873
pub enum CreateSurfaceError {

wgpu-types/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,6 @@ impl fmt::Display for RequestAdapterError {
449449
}
450450
}
451451

452-
impl error::WebGpuError for RequestAdapterError {
453-
fn webgpu_error_type(&self) -> error::ErrorType {
454-
error::ErrorType::Validation
455-
}
456-
}
457-
458452
/// Represents the sets of limits an adapter/device supports.
459453
///
460454
/// We provide three different defaults.

0 commit comments

Comments
 (0)