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
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.
TypeMismatch
Fields
location: u32
Location of the element that mismatches.
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
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 more
sourceimpl Debug for ShaderInterfaceMismatchError
impl Debug for ShaderInterfaceMismatchError
sourceimpl Error for ShaderInterfaceMismatchError
impl Error for ShaderInterfaceMismatchError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<ShaderInterfaceMismatchError> for ShaderInterfaceMismatchError
impl PartialEq<ShaderInterfaceMismatchError> for ShaderInterfaceMismatchError
sourcefn eq(&self, other: &ShaderInterfaceMismatchError) -> bool
fn eq(&self, other: &ShaderInterfaceMismatchError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ShaderInterfaceMismatchError) -> bool
fn ne(&self, other: &ShaderInterfaceMismatchError) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more