#[non_exhaustive]
pub enum ShaderReflectError {
SpirvCrossError(ErrorCode),
VertexSemanticError(SemanticsErrorKind),
FragmentSemanticError(SemanticsErrorKind),
MismatchedUniformBuffer {
vertex: u32,
fragment: u32,
},
NonCausalFilterChain {
pass: usize,
target: usize,
},
MismatchedOffset {
semantic: String,
expected: usize,
received: usize,
ty: UniformMemberBlock,
pass: usize,
},
MismatchedSize {
semantic: String,
vertex: u32,
fragment: u32,
pass: usize,
},
BindingInUse(u32),
}Expand description
Error type for shader reflection.
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.
SpirvCrossError(ErrorCode)
Reflection error from spirv-cross.
VertexSemanticError(SemanticsErrorKind)
Error when validating vertex shader semantics.
FragmentSemanticError(SemanticsErrorKind)
Error when validating fragment shader semantics.
MismatchedUniformBuffer
The vertex and fragment shader must have the same UBO binding location.
NonCausalFilterChain
The filter chain was found to be non causal. A pass tried to access the target output in the future.
MismatchedOffset
The offset of the given uniform did not match up in both the vertex and fragment shader.
MismatchedSize
The size of the given uniform did not match up in both the vertex and fragment shader.
BindingInUse(u32)
The binding number is already in use.
Trait Implementations§
source§impl Debug for ShaderReflectError
impl Debug for ShaderReflectError
source§impl Display for ShaderReflectError
impl Display for ShaderReflectError
source§impl Error for ShaderReflectError
impl Error for ShaderReflectError
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()