pub enum ErrorKind {
Show 14 variants
EndOfFile,
InvalidProfile(String),
InvalidVersion(u64),
InvalidToken(TokenValue, Vec<ExpectedToken>),
NotImplemented(&'static str),
UnknownVariable(String),
UnknownType(String),
UnknownField(String),
UnknownLayoutQualifier(String),
UnsupportedMatrixTypeInStd140,
VariableAlreadyDeclared(String),
SemanticError(Cow<'static, str>),
PreprocessorError(PreprocessorError),
InternalError(&'static str),
}
Expand description
Information about the cause of an error.
Variants§
EndOfFile
Whilst parsing as encountered an unexpected EOF.
InvalidProfile(String)
The shader specified an unsupported or invalid profile.
InvalidVersion(u64)
The shader requested an unsupported or invalid version.
InvalidToken(TokenValue, Vec<ExpectedToken>)
Whilst parsing an unexpected token was encountered.
A list of expected tokens is also returned.
NotImplemented(&'static str)
A specific feature is not yet implemented.
To help prioritize work please open an issue in the github issue tracker if none exist already or react to the already existing one.
UnknownVariable(String)
A reference to a variable that wasn’t declared was used.
UnknownType(String)
A reference to a type that wasn’t declared was used.
UnknownField(String)
A reference to a non existent member of a type was made.
UnknownLayoutQualifier(String)
An unknown layout qualifier was used.
If the qualifier does exist please open an issue in the github issue tracker if none exist already or react to the already existing one to help prioritize work.
UnsupportedMatrixTypeInStd140
Unsupported matrix of the form matCx2
Our IR expects matrices of the form matCx2 to have a stride of 8 however matrices in the std140 layout have a stride of at least 16
VariableAlreadyDeclared(String)
A variable with the same name already exists in the current scope.
SemanticError(Cow<'static, str>)
A semantic error was detected in the shader.
PreprocessorError(PreprocessorError)
An error was returned by the preprocessor.
InternalError(&'static str)
The parser entered an illegal state and exited
This obviously is a bug and as such should be reported in the github issue tracker
Trait Implementations§
source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ConstantEvaluatorError> for ErrorKind
impl From<ConstantEvaluatorError> for ErrorKind
source§fn from(err: ConstantEvaluatorError) -> Self
fn from(err: ConstantEvaluatorError) -> Self
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)