pub enum RendererInitError {
CreateSurface(CreateSurfaceError),
RequestAdapter(RequestAdapterError),
RequestDevice(RequestDeviceError),
NoSurfaceConfig,
RecoveryLimitReached {
limit: usize,
},
}Expand description
Errors that can happen while creating the wgpu renderer.
Variants§
CreateSurface(CreateSurfaceError)
Surface creation failed for the provided window or canvas target.
RequestAdapter(RequestAdapterError)
No compatible GPU adapter could be selected.
RequestDevice(RequestDeviceError)
A logical GPU device and queue could not be created.
NoSurfaceConfig
The surface did not expose a usable default configuration.
RecoveryLimitReached
The bounded previous-device quarantine is full.
Trait Implementations§
Source§impl Debug for RendererInitError
impl Debug for RendererInitError
Source§impl Display for RendererInitError
impl Display for RendererInitError
Source§impl Error for RendererInitError
impl Error for RendererInitError
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 !RefUnwindSafe for RendererInitError
impl !UnwindSafe for RendererInitError
impl Freeze for RendererInitError
impl Send for RendererInitError
impl Sync for RendererInitError
impl Unpin for RendererInitError
impl UnsafeUnpin for RendererInitError
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