pub enum ResourceError {
Shader(ShaderError),
Pipeline(PipelineError),
NotFound,
InvalidHandle,
BackendError(String),
OutOfBounds,
}
Expand description
An error related to the creation or use of a GPU resource (buffers, textures, etc.).
Variants§
Shader(ShaderError)
A shader-specific error occurred.
Pipeline(PipelineError)
A pipeline-specific error occurred.
NotFound
A generic resource could not be found.
InvalidHandle
The handle or ID used to reference a resource is invalid.
BackendError(String)
An error originating from the specific graphics backend implementation.
OutOfBounds
An attempt was made to access a resource out of its bounds (e.g., in a buffer).
Trait Implementations§
Source§impl Debug for ResourceError
impl Debug for ResourceError
Source§impl Display for ResourceError
impl Display for ResourceError
Source§impl Error for ResourceError
impl Error for ResourceError
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<PipelineError> for ResourceError
impl From<PipelineError> for ResourceError
Source§fn from(err: PipelineError) -> Self
fn from(err: PipelineError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceError> for RenderError
impl From<ResourceError> for RenderError
Source§fn from(err: ResourceError) -> Self
fn from(err: ResourceError) -> Self
Converts to this type from the input type.
Source§impl From<ShaderError> for ResourceError
impl From<ShaderError> for ResourceError
Source§fn from(err: ShaderError) -> Self
fn from(err: ShaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResourceError
impl RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl UnwindSafe for ResourceError
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