Enum gfx_hal::device::ShaderError
source · pub enum ShaderError {
CompilationFailed(String),
MissingEntryPoint(String),
InterfaceMismatch(String),
UnsupportedStage(Stage),
OutOfMemory(OutOfMemory),
}
Expand description
An error from creating a shader module.
Variants
CompilationFailed(String)
The shader failed to compile.
MissingEntryPoint(String)
Missing entry point.
InterfaceMismatch(String)
Mismatch of interface (e.g missing push constants).
UnsupportedStage(Stage)
Shader stage is not supported.
OutOfMemory(OutOfMemory)
Out of either host or device memory.
Trait Implementations
sourceimpl Clone for ShaderError
impl Clone for ShaderError
sourcefn clone(&self) -> ShaderError
fn clone(&self) -> ShaderError
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 moresourceimpl Debug for ShaderError
impl Debug for ShaderError
sourceimpl Display for ShaderError
impl Display for ShaderError
sourceimpl Fail for ShaderError
impl Fail for ShaderError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<OutOfMemory> for ShaderError
impl From<OutOfMemory> for ShaderError
sourcefn from(error: OutOfMemory) -> Self
fn from(error: OutOfMemory) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ShaderError> for ShaderError
impl PartialEq<ShaderError> for ShaderError
sourcefn eq(&self, other: &ShaderError) -> bool
fn eq(&self, other: &ShaderError) -> bool
impl Eq for ShaderError
impl StructuralEq for ShaderError
impl StructuralPartialEq for ShaderError
Auto Trait Implementations
impl RefUnwindSafe for ShaderError
impl Send for ShaderError
impl Sync for ShaderError
impl Unpin for ShaderError
impl UnwindSafe for ShaderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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