pub enum WebGpuError {
NoAdapter,
DeviceRequest(String),
OutOfMemory,
ShaderCompilation(String),
PipelineCreation(String),
NotInitialized,
Unsupported(String),
InvalidArgument(String),
BufferMapping(String),
Timeout,
UncapturedError(String),
DeviceLost(String),
}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.
UncapturedError(String)
A wgpu validation, out-of-memory, or internal error was captured by
the non-fatal on_uncaptured_error handler installed in
crate::device::WebGpuDevice::new, instead of aborting the process
(wgpu’s default handler is fatal). See
crate::device::WebGpuDevice::poll_error.
DeviceLost(String)
The device was reported lost (GPU reset, driver failure, or an
external Device::destroy() call) by the callback installed via
Device::set_device_lost_callback in
crate::device::WebGpuDevice::new.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()