fix!: remove WebGpuError impl. for Request{Adapter,Device}Error

This commit is contained in:
Erich Gubler 2025-06-24 12:10:03 -04:00
parent c7e6170fd0
commit 7ff0bd784e
2 changed files with 0 additions and 18 deletions

View File

@ -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 {

View File

@ -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.