pub enum RenderError {
AdapterCreationFailed,
DeviceCreationFailed(RequestDeviceError),
SurfaceCreationFailed(CreateSurfaceError),
SurfaceConfigurationFailed,
ShaderCompilationFailed(String),
PipelineCreationFailed(String),
BufferCreationFailed(String),
TextureCreationFailed(String),
SurfaceLost,
SurfaceOutdated,
OutOfMemory,
Timeout,
}Expand description
Errors that can occur during rendering operations.
Variants§
AdapterCreationFailed
Failed to create wgpu adapter.
DeviceCreationFailed(RequestDeviceError)
Failed to create wgpu device.
SurfaceCreationFailed(CreateSurfaceError)
Failed to create surface.
SurfaceConfigurationFailed
Surface configuration failed.
ShaderCompilationFailed(String)
Shader compilation failed.
PipelineCreationFailed(String)
Pipeline creation failed.
BufferCreationFailed(String)
Buffer creation failed.
TextureCreationFailed(String)
Texture creation failed.
SurfaceLost
Surface lost.
SurfaceOutdated
Surface outdated.
OutOfMemory
Out of memory.
Timeout
Timeout waiting for GPU.
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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 RenderError
impl From<CreateSurfaceError> for RenderError
Source§fn from(source: CreateSurfaceError) -> Self
fn from(source: CreateSurfaceError) -> Self
Converts to this type from the input type.
Source§impl From<RequestDeviceError> for RenderError
impl From<RequestDeviceError> for RenderError
Source§fn from(source: RequestDeviceError) -> Self
fn from(source: RequestDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RenderError
impl !RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl !UnwindSafe for RenderError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more