mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
fix!: remove WebGpuError impl. for Request{Adapter,Device}Error
This commit is contained in:
1 parent
c7e6170fd0
commit
7ff0bd784e
2 files changed
-18
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user