pub enum ShaderInterfaceMismatchError {
ElementsCountMismatch {
self_elements: u32,
other_elements: u32,
},
MissingElement {
location: u32,
},
TypeMismatch {
location: u32,
self_ty: ShaderInterfaceEntryType,
other_ty: ShaderInterfaceEntryType,
},
}
Expand description
Error that can happen when the interface mismatches between two shader stages.
Variants§
ElementsCountMismatch
Fields
The number of elements is not the same between the two shader interfaces.
MissingElement
An element is missing from one of the interfaces.
TypeMismatch
Fields
§
self_ty: ShaderInterfaceEntryType
Type in the first interface.
§
other_ty: ShaderInterfaceEntryType
Type in the second interface.
The type of an element does not match.
Trait Implementations§
source§impl Clone for ShaderInterfaceMismatchError
impl Clone for ShaderInterfaceMismatchError
source§fn clone(&self) -> ShaderInterfaceMismatchError
fn clone(&self) -> ShaderInterfaceMismatchError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ShaderInterfaceMismatchError
impl Debug for ShaderInterfaceMismatchError
source§impl Error for ShaderInterfaceMismatchError
impl Error for ShaderInterfaceMismatchError
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()