File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -332,8 +332,6 @@ impl WebGpuError for DeviceMismatch {
332332#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
333333#[ non_exhaustive]
334334pub enum DeviceError {
335- #[ error( "{0} is invalid." ) ]
336- Invalid ( ResourceErrorIdent ) ,
337335 #[ error( "Parent device is lost" ) ]
338336 Lost ,
339337 #[ error( "Not enough memory left." ) ]
@@ -348,7 +346,6 @@ impl WebGpuError for DeviceError {
348346 fn webgpu_error_type ( & self ) -> ErrorType {
349347 match self {
350348 DeviceError :: DeviceMismatch ( e) => e. webgpu_error_type ( ) ,
351- Self :: Invalid ( _) => ErrorType :: Validation ,
352349 Self :: ResourceCreationFailed => ErrorType :: OutOfMemory ,
353350 Self :: Lost => ErrorType :: DeviceLost {
354351 reason : DeviceLostReason :: Unknown ,
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ impl Device {
357357 if self . is_valid ( ) {
358358 Ok ( ( ) )
359359 } else {
360- Err ( DeviceError :: Invalid ( self . error_ident ( ) ) )
360+ Err ( DeviceError :: Lost )
361361 }
362362 }
363363
You can’t perform that action at this time.
0 commit comments