Enum naga::front::glsl::ErrorKind [−][src]
pub enum ErrorKind {
EndOfFile,
InvalidProfile(String),
InvalidVersion(u64),
InvalidToken(TokenValue, Vec<ExpectedToken>),
NotImplemented(&'static str),
UnknownVariable(String),
UnknownType(String),
UnknownField(String),
UnknownLayoutQualifier(String),
VariableAlreadyDeclared(String),
SemanticError(Cow<'static, str>),
PreprocessorError(PreprocessorError),
}
Expand description
Information about the cause of an error
Variants
Whilst parsing as encountered an unexpected EOF.
InvalidProfile(String)
The shader specified an unsupported or invalid profile.
Tuple Fields of InvalidProfile
0: String
InvalidVersion(u64)
The shader requested an unsupported or invalid version.
Tuple Fields of InvalidVersion
0: u64
InvalidToken(TokenValue, Vec<ExpectedToken>)
Whilst parsing an unexpected token was encountered.
A list of expected tokens is also returned.
Tuple Fields of InvalidToken
0: TokenValue
1: Vec<ExpectedToken>
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.
Tuple Fields of NotImplemented
0: &'static str
UnknownVariable(String)
A reference to a variable that wasn’t declared was used.
Tuple Fields of UnknownVariable
0: String
UnknownType(String)
A reference to a type that wasn’t declared was used.
Tuple Fields of UnknownType
0: String
UnknownField(String)
A reference to a non existant member of a type was made.
Tuple Fields of UnknownField
0: String
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.
Tuple Fields of UnknownLayoutQualifier
0: String
VariableAlreadyDeclared(String)
A variable with the same name already exists in the current scope.
Tuple Fields of VariableAlreadyDeclared
0: String
A semantic error was detected in the shader.
PreprocessorError(PreprocessorError)
An error was returned by the preprocessor.