mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
fix!: remove WebGpuError impl. for Request{Adapter,Device}Error
This commit is contained in:
parent
c7e6170fd0
commit
7ff0bd784e
@ -868,18 +868,6 @@ pub enum RequestDeviceError {
|
||||
UnsupportedFeature(wgt::Features),
|
||||
}
|
||||
|
||||
impl WebGpuError for RequestDeviceError {
|
||||
fn webgpu_error_type(&self) -> ErrorType {
|
||||
let e: &dyn WebGpuError = match self {
|
||||
Self::Device(e) => e,
|
||||
Self::LimitsExceeded(e) => e,
|
||||
Self::TimestampNormalizerInitFailed(e) => e,
|
||||
Self::UnsupportedFeature(_) => return ErrorType::Validation,
|
||||
};
|
||||
e.webgpu_error_type()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Error)]
|
||||
#[non_exhaustive]
|
||||
pub enum CreateSurfaceError {
|
||||
|
||||
@ -449,12 +449,6 @@ impl fmt::Display for RequestAdapterError {
|
||||
}
|
||||
}
|
||||
|
||||
impl error::WebGpuError for RequestAdapterError {
|
||||
fn webgpu_error_type(&self) -> error::ErrorType {
|
||||
error::ErrorType::Validation
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents the sets of limits an adapter/device supports.
|
||||
///
|
||||
/// We provide three different defaults.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user