pub enum PreprocessError {
MissingVersionHeader,
IOError(PathBuf, Error),
EncodingError(PathBuf),
UnexpectedEof,
UnexpectedEol(usize),
PragmaParseError(String),
DuplicatePragmaError(String),
UnknownImageFormat,
InvalidStage,
}Expand description
Error type for source preprocessing.
Variants§
MissingVersionHeader
The version header was not found in the source file.
IOError(PathBuf, Error)
An IO error occurred when reading the source file.
EncodingError(PathBuf)
A known encoding was not found for the file.
UnexpectedEof
Unexpected EOF when reading the source file.
UnexpectedEol(usize)
Unexpected end of line when reading the source file.
PragmaParseError(String)
An error occurred when parsing a pragma statement.
DuplicatePragmaError(String)
The given pragma was declared multiple times with differing values.
UnknownImageFormat
The image format requested by the shader was unknown or not supported.
InvalidStage
The stage declared by the shader source was not vertex or fragment.
Trait Implementations§
source§impl Debug for PreprocessError
impl Debug for PreprocessError
source§impl Display for PreprocessError
impl Display for PreprocessError
source§impl Error for PreprocessError
impl Error for PreprocessError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<Infallible> for PreprocessError
impl From<Infallible> for PreprocessError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.