#[non_exhaustive]pub enum ShaderReflectError {
SpirvCrossError(SpirvCrossError),
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),
NagaInputError(Error),
NagaReflectError(WithSpan<ValidationError>),
}
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(SpirvCrossError)
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.
NagaInputError(Error)
Error when transpiling from naga
NagaReflectError(WithSpan<ValidationError>)
Error when transpiling from naga
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)>
Returns 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<Error> for ShaderReflectError
impl From<Error> for ShaderReflectError
Source§impl From<SpirvCrossError> for ShaderReflectError
impl From<SpirvCrossError> for ShaderReflectError
Source§fn from(source: SpirvCrossError) -> Self
fn from(source: SpirvCrossError) -> Self
Converts to this type from the input type.
Source§impl From<WithSpan<ValidationError>> for ShaderReflectError
impl From<WithSpan<ValidationError>> for ShaderReflectError
Source§fn from(source: WithSpan<ValidationError>) -> Self
fn from(source: WithSpan<ValidationError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShaderReflectError
impl !RefUnwindSafe for ShaderReflectError
impl Send for ShaderReflectError
impl Sync for ShaderReflectError
impl Unpin for ShaderReflectError
impl !UnwindSafe for ShaderReflectError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more