Enum naga::front::glsl::ErrorKind[][src]

pub enum ErrorKind {
    EndOfFile,
    InvalidProfile(String),
    InvalidVersion(u64),
    InvalidToken(TokenValueVec<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

EndOfFile

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(TokenValueVec<ExpectedToken>)

Whilst parsing an unexpected token was encountered.

A list of expected tokens is also returned.

Tuple Fields of InvalidToken

0: TokenValue1: 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
SemanticError(Cow<'static, str>)

A semantic error was detected in the shader.

Tuple Fields of SemanticError

0: Cow<'static, str>
PreprocessorError(PreprocessorError)

An error was returned by the preprocessor.

Tuple Fields of PreprocessorError

0: PreprocessorError

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.