pub enum SpirvError {
BadLayout {
index: usize,
},
DuplicateId {
id: Id,
first_index: usize,
second_index: usize,
},
GroupDecorateNotGroup {
index: usize,
},
IdOutOfBounds {
id: Id,
index: usize,
bound: u32,
},
InvalidHeader,
MemoryModelInvalid,
ParseError(ParseError),
}
Expand description
Error that can happen when reading a SPIR-V module.
Variants
BadLayout
Fields
index: usize
DuplicateId
GroupDecorateNotGroup
Fields
index: usize
IdOutOfBounds
InvalidHeader
MemoryModelInvalid
ParseError(ParseError)
Trait Implementations
sourceimpl Clone for SpirvError
impl Clone for SpirvError
sourcefn clone(&self) -> SpirvError
fn clone(&self) -> SpirvError
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 SpirvError
impl Debug for SpirvError
sourceimpl Display for SpirvError
impl Display for SpirvError
sourceimpl Error for SpirvError
impl Error for SpirvError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ParseError> for SpirvError
impl From<ParseError> for SpirvError
sourcefn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<SpirvError> for ShaderCreationError
impl From<SpirvError> for ShaderCreationError
sourcefn from(err: SpirvError) -> Self
fn from(err: SpirvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for SpirvError
impl Send for SpirvError
impl Sync for SpirvError
impl Unpin for SpirvError
impl UnwindSafe for SpirvError
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