pub enum WgpuContextError {
NoCompatibleDevice,
WgpuCreateSurfaceError(CreateSurfaceError),
UnsupportedSurfaceFormat,
RequestAdapterError(RequestAdapterError),
RequestDeviceError(RequestDeviceError),
PollError(PollError),
}Expand description
Errors that can occur in WgpuContext.
Variants§
NoCompatibleDevice
There is no available device with the features required by Vello.
WgpuCreateSurfaceError(CreateSurfaceError)
Failed to create surface.
See wgpu::CreateSurfaceError for more information.
UnsupportedSurfaceFormat
Surface doesn’t support the required texture formats.
Make sure that you have a surface which provides one of
TextureFormat::Rgba8Unorm
or TextureFormat::Bgra8Unorm as texture formats.
RequestAdapterError(RequestAdapterError)
Wgpu failed to request an adapter
RequestDeviceError(RequestDeviceError)
Wgpu failed to request a device
PollError(PollError)
Wgpu failed to poll a device
Trait Implementations§
Source§impl Debug for WgpuContextError
impl Debug for WgpuContextError
Source§impl Display for WgpuContextError
impl Display for WgpuContextError
Source§impl Error for WgpuContextError
impl Error for WgpuContextError
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()
Source§impl From<CreateSurfaceError> for WgpuContextError
impl From<CreateSurfaceError> for WgpuContextError
Source§fn from(value: CreateSurfaceError) -> Self
fn from(value: CreateSurfaceError) -> Self
Converts to this type from the input type.
Source§impl From<PollError> for WgpuContextError
impl From<PollError> for WgpuContextError
Source§impl From<RequestAdapterError> for WgpuContextError
impl From<RequestAdapterError> for WgpuContextError
Source§fn from(value: RequestAdapterError) -> Self
fn from(value: RequestAdapterError) -> Self
Converts to this type from the input type.
Source§impl From<RequestDeviceError> for WgpuContextError
impl From<RequestDeviceError> for WgpuContextError
Source§fn from(value: RequestDeviceError) -> Self
fn from(value: RequestDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WgpuContextError
impl !RefUnwindSafe for WgpuContextError
impl Send for WgpuContextError
impl Sync for WgpuContextError
impl Unpin for WgpuContextError
impl !UnwindSafe for WgpuContextError
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