File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -332,8 +332,6 @@ impl WebGpuError for DeviceMismatch {
332
332
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
333
333
#[ non_exhaustive]
334
334
pub enum DeviceError {
335
- #[ error( "{0} is invalid." ) ]
336
- Invalid ( ResourceErrorIdent ) ,
337
335
#[ error( "Parent device is lost" ) ]
338
336
Lost ,
339
337
#[ error( "Not enough memory left." ) ]
@@ -348,7 +346,6 @@ impl WebGpuError for DeviceError {
348
346
fn webgpu_error_type ( & self ) -> ErrorType {
349
347
match self {
350
348
DeviceError :: DeviceMismatch ( e) => e. webgpu_error_type ( ) ,
351
- Self :: Invalid ( _) => ErrorType :: Validation ,
352
349
Self :: ResourceCreationFailed => ErrorType :: OutOfMemory ,
353
350
Self :: Lost => ErrorType :: DeviceLost {
354
351
reason : DeviceLostReason :: Unknown ,
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ impl Device {
357
357
if self . is_valid ( ) {
358
358
Ok ( ( ) )
359
359
} else {
360
- Err ( DeviceError :: Invalid ( self . error_ident ( ) ) )
360
+ Err ( DeviceError :: Lost )
361
361
}
362
362
}
363
363
You can’t perform that action at this time.
0 commit comments