pub enum ShaderInterfaceMismatchError {
ElementsCountMismatch {
self_elements: u32,
other_elements: u32,
},
MissingElement {
location: u32,
},
FormatMismatch {
location: u32,
self_format: Format,
other_format: Format,
},
}
Expand description
Error that can happen when the interface mismatches between two shader stages.
Variants
ElementsCountMismatch
Fields
self_elements: u32
Number of elements in the first interface.
other_elements: u32
Number of elements in the second interface.
The number of elements is not the same between the two shader interfaces.
MissingElement
Fields
location: u32
Location of the missing element.
An element is missing from one of the interfaces.
FormatMismatch
Fields
location: u32
Location of the element that mismatches.
self_format: Format
Format in the first interface.
other_format: Format
Format in the second interface.
The format of an element does not match.
Trait Implementations
sourceimpl Clone for ShaderInterfaceMismatchError
impl Clone for ShaderInterfaceMismatchError
sourcefn clone(&self) -> ShaderInterfaceMismatchError
fn clone(&self) -> ShaderInterfaceMismatchError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ShaderInterfaceMismatchError
impl Debug for ShaderInterfaceMismatchError
sourceimpl Error for ShaderInterfaceMismatchError
impl Error for ShaderInterfaceMismatchError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl PartialEq<ShaderInterfaceMismatchError> for ShaderInterfaceMismatchError
impl PartialEq<ShaderInterfaceMismatchError> for ShaderInterfaceMismatchError
sourcefn eq(&self, other: &ShaderInterfaceMismatchError) -> bool
fn eq(&self, other: &ShaderInterfaceMismatchError) -> bool
impl Eq for ShaderInterfaceMismatchError
impl StructuralEq for ShaderInterfaceMismatchError
impl StructuralPartialEq for ShaderInterfaceMismatchError
Auto Trait Implementations
impl RefUnwindSafe for ShaderInterfaceMismatchError
impl Send for ShaderInterfaceMismatchError
impl Sync for ShaderInterfaceMismatchError
impl Unpin for ShaderInterfaceMismatchError
impl UnwindSafe for ShaderInterfaceMismatchError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.