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