Enum luminance_front::shader::StageError
source · [−]#[non_exhaustive]
pub enum StageError {
CompilationFailed(StageType, String),
UnsupportedType(StageType),
}
Expand description
Errors that shader stages can emit.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
CompilationFailed(StageType, String)
Occurs when a shader fails to compile.
UnsupportedType(StageType)
Occurs when you try to create a shader which type is not supported on the current hardware.
Implementations
sourceimpl StageError
impl StageError
sourcepub fn compilation_failed(
ty: StageType,
reason: impl Into<String>
) -> StageError
pub fn compilation_failed(
ty: StageType,
reason: impl Into<String>
) -> StageError
Occurs when a shader fails to compile.
sourcepub fn unsupported_type(ty: StageType) -> StageError
pub fn unsupported_type(ty: StageType) -> StageError
Occurs when you try to create a shader which type is not supported on the current hardware.
Trait Implementations
sourceimpl Clone for StageError
impl Clone for StageError
sourcefn clone(&self) -> StageError
fn clone(&self) -> StageError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StageError
impl Debug for StageError
sourceimpl Display for StageError
impl Display for StageError
sourceimpl Error for StageError
impl Error for StageError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<StageError> for ProgramError
impl From<StageError> for ProgramError
sourcefn from(e: StageError) -> ProgramError
fn from(e: StageError) -> ProgramError
Converts to this type from the input type.
sourceimpl PartialEq<StageError> for StageError
impl PartialEq<StageError> for StageError
sourcefn eq(&self, other: &StageError) -> bool
fn eq(&self, other: &StageError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StageError) -> bool
fn ne(&self, other: &StageError) -> bool
This method tests for !=
.
impl Eq for StageError
impl StructuralEq for StageError
impl StructuralPartialEq for StageError
Auto Trait Implementations
impl RefUnwindSafe for StageError
impl Send for StageError
impl Sync for StageError
impl Unpin for StageError
impl UnwindSafe for StageError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more