pub enum ComputeError {
NoAdapter,
DeviceRequest(String),
OutOfMemory,
ShaderCompilation(String),
Operation {
op: &'static str,
detail: String,
},
}Expand description
Errors that can occur while initialising or using a GPU compute context.
Variants§
NoAdapter
No GPU adapter was found on this host (headless CI, VM without GPU, …).
Callers should treat this as a graceful skip, not a hard failure.
DeviceRequest(String)
The adapter was found but the device/queue request failed.
The contained string carries the underlying wgpu diagnostic.
OutOfMemory
A GPU memory allocation failed or the device reported an out-of-memory condition via an error scope.
ShaderCompilation(String)
WGSL shader compilation failed.
The contained string carries the diagnostic message including line and
column numbers as reported by wgpu::CompilationInfo.
Operation
A compute operation failed with structured context.
op names the failing operation (e.g. "read_back", "dispatch");
detail carries the parameters or wgpu-level message.
Trait Implementations§
Source§impl Debug for ComputeError
impl Debug for ComputeError
Source§impl Display for ComputeError
impl Display for ComputeError
Source§impl Error for ComputeError
impl Error for ComputeError
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()