Enum glslang::error::GlslangError
source · pub enum GlslangError {
PreprocessError(String),
ParseError(String),
MapIoError(String),
LinkError(String),
ShaderStageNotFound(ShaderStage),
NoLanguageTarget,
InvalidTarget(Target),
InvalidProfile(Target, i32, GlslProfile),
VersionUnsupported(i32, GlslProfile),
}
Expand description
The error type for glslang
.
Variants§
PreprocessError(String)
Error occurred when preprocessing.
ParseError(String)
Error occurred when preprocessing.
MapIoError(String)
Error occurred when mapping IO.
LinkError(String)
Error occurred when linking
ShaderStageNotFound(ShaderStage)
The shader stage was not found in the program.
NoLanguageTarget
No SPIR-V language target was set.
InvalidTarget(Target)
The target is not a valid combination of environment, version, and language version.
InvalidProfile(Target, i32, GlslProfile)
The GLSL profile and version is not valid for the specified target.
VersionUnsupported(i32, GlslProfile)
The GLSL version is unsupported for the profile
Trait Implementations§
source§impl Debug for GlslangError
impl Debug for GlslangError
source§impl Display for GlslangError
impl Display for GlslangError
source§impl Error for GlslangError
impl Error for GlslangError
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()
Auto Trait Implementations§
impl RefUnwindSafe for GlslangError
impl Send for GlslangError
impl Sync for GlslangError
impl Unpin for GlslangError
impl UnwindSafe for GlslangError
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
Mutably borrows from an owned value. Read more