pub enum GpuOpError {
Backend(String),
InvalidInput(String),
}Expand description
A GPU path failed to complete. The cascade treats ANY of these as “fall back to CPU”, so the variants exist for logging/diagnosis, not for the caller to recover differently per case.
Variants§
Backend(String)
A wgpu-level failure (buffer mapping, device poll, validation). String
because the underlying wgpu error types are not uniform or 'static.
InvalidInput(String)
The op’s own precondition was violated in a way the GPU path can’t run (e.g. mismatched input lengths). Kept distinct so a genuine caller bug is not silently masked by the CPU fallback in logs.
Trait Implementations§
Source§impl Debug for GpuOpError
impl Debug for GpuOpError
Source§impl Display for GpuOpError
impl Display for GpuOpError
Source§impl Error for GpuOpError
impl Error for GpuOpError
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()
Auto Trait Implementations§
impl Freeze for GpuOpError
impl RefUnwindSafe for GpuOpError
impl Send for GpuOpError
impl Sync for GpuOpError
impl Unpin for GpuOpError
impl UnsafeUnpin for GpuOpError
impl UnwindSafe for GpuOpError
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