pub enum SpirvCrossError {
InvalidSpirv(String),
UnsupportedSpirv(String),
OutOfMemory(String),
InvalidArgument(String),
InvalidHandle(Handle<Box<dyn Id>>),
InvalidOperation(String),
InvalidDecorationOutput(Decoration, u32),
InvalidDecorationInput(Decoration, DecorationValue<'static>),
InvalidString(String),
IndexOutOfBounds {
row: u32,
column: u32,
},
InvalidEnum,
}Expand description
Error type for SPIR-V Cross.
Variants§
InvalidSpirv(String)
The SPIR-V is invalid.
UnsupportedSpirv(String)
The SPIR-V operation is invalid.
OutOfMemory(String)
Allocation failure.
InvalidArgument(String)
The argument is invalid.
InvalidHandle(Handle<Box<dyn Id>>)
The handle provided originated from a different compiler instance.
InvalidOperation(String)
The requested operation is invalid.
InvalidDecorationOutput(Decoration, u32)
The decoration value invalid for the given decoration.
This is mostly returned if there is an invalid OpDecoration Builtin or OpDecoration FPRoundingMode
in the SPIR-V module.
InvalidDecorationInput(Decoration, DecorationValue<'static>)
The decoration value is invalid for the given decoration.
InvalidString(String)
The string is invalid.
Strings must not be nul-terminated, and must be valid UTF-8.
IndexOutOfBounds
The index is out of bounds when trying to access a constant resource.
Multiscalar specialization constants are stored in column-major order. Vectors are always in column 1.
InvalidEnum
An unexpected enum value was found.
Trait Implementations§
Source§impl Debug for SpirvCrossError
impl Debug for SpirvCrossError
Source§impl Display for SpirvCrossError
impl Display for SpirvCrossError
Source§impl Error for SpirvCrossError
impl Error for SpirvCrossError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SpirvCrossError
impl !RefUnwindSafe for SpirvCrossError
impl Send for SpirvCrossError
impl Sync for SpirvCrossError
impl Unpin for SpirvCrossError
impl !UnwindSafe for SpirvCrossError
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