pub enum WebGpuError {
NoAdapter,
DeviceRequest(String),
OutOfMemory,
ShaderCompilation(String),
PipelineCreation(String),
NotInitialized,
Unsupported(String),
InvalidArgument(String),
BufferMapping(String),
Timeout,
}Expand description
Errors specific to the WebGPU backend.
Variants§
NoAdapter
No compatible WebGPU adapter was found on this system.
DeviceRequest(String)
The device request to the adapter failed.
OutOfMemory
The GPU ran out of memory during buffer allocation.
ShaderCompilation(String)
WGSL shader source failed to compile.
PipelineCreation(String)
A compute pipeline could not be created.
NotInitialized
The backend has not been initialized yet.
Unsupported(String)
The requested operation is not supported by this backend.
InvalidArgument(String)
An invalid argument was passed to an operation.
BufferMapping(String)
A buffer mapping operation failed.
Timeout
An async operation timed out waiting for the adapter.
Trait Implementations§
Source§impl Debug for WebGpuError
impl Debug for WebGpuError
Source§impl Display for WebGpuError
impl Display for WebGpuError
Source§impl Error for WebGpuError
impl Error for WebGpuError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<WebGpuError> for BackendError
impl From<WebGpuError> for BackendError
Source§fn from(e: WebGpuError) -> Self
fn from(e: WebGpuError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebGpuError
impl RefUnwindSafe for WebGpuError
impl Send for WebGpuError
impl Sync for WebGpuError
impl Unpin for WebGpuError
impl UnsafeUnpin for WebGpuError
impl UnwindSafe for WebGpuError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more