File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -868,18 +868,6 @@ pub enum RequestDeviceError {
868
868
UnsupportedFeature ( wgt:: Features ) ,
869
869
}
870
870
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
-
883
871
#[ derive( Clone , Debug , Error ) ]
884
872
#[ non_exhaustive]
885
873
pub enum CreateSurfaceError {
Original file line number Diff line number Diff line change @@ -449,12 +449,6 @@ impl fmt::Display for RequestAdapterError {
449
449
}
450
450
}
451
451
452
- impl error:: WebGpuError for RequestAdapterError {
453
- fn webgpu_error_type ( & self ) -> error:: ErrorType {
454
- error:: ErrorType :: Validation
455
- }
456
- }
457
-
458
452
/// Represents the sets of limits an adapter/device supports.
459
453
///
460
454
/// We provide three different defaults.
You can’t perform that action at this time.
0 commit comments