pub enum GpuErrorKind {
DeviceLost,
OutOfMemory,
ShaderCompile,
SurfaceLost,
}Expand description
The class of error reported by the GPU runtime.
Variants§
DeviceLost
The GPU device was lost (driver crash, unplug, TDR, …).
OutOfMemory
The GPU ran out of memory.
ShaderCompile
A shader module failed to compile.
SurfaceLost
The swap-chain surface was lost (window closed, resize race, …).
Trait Implementations§
Source§impl Clone for GpuErrorKind
impl Clone for GpuErrorKind
Source§fn clone(&self) -> GpuErrorKind
fn clone(&self) -> GpuErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuErrorKind
impl Debug for GpuErrorKind
Source§impl PartialEq for GpuErrorKind
impl PartialEq for GpuErrorKind
Source§fn eq(&self, other: &GpuErrorKind) -> bool
fn eq(&self, other: &GpuErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GpuErrorKind
Auto Trait Implementations§
impl Freeze for GpuErrorKind
impl RefUnwindSafe for GpuErrorKind
impl Send for GpuErrorKind
impl Sync for GpuErrorKind
impl Unpin for GpuErrorKind
impl UnsafeUnpin for GpuErrorKind
impl UnwindSafe for GpuErrorKind
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