#[non_exhaustive]
pub enum ShaderCompileError {
ShaderCCompileError(Error),
ShaderCInitError,
SpirvCrossCompileError(ErrorCode),
}Expand description
Error type for shader compilation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ShaderCCompileError(Error)
Compilation error from shaderc (glslang).
ShaderCInitError
Error when initializing the shaderc compiler.
SpirvCrossCompileError(ErrorCode)
Error when transpiling from spirv-cross.
Trait Implementations§
source§impl Debug for ShaderCompileError
impl Debug for ShaderCompileError
source§impl Display for ShaderCompileError
impl Display for ShaderCompileError
source§impl Error for ShaderCompileError
impl Error for ShaderCompileError
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()