pub enum LayoutMismatchError {
TypeMismatch {
expected: UniformType,
obtained: UniformType,
},
LayoutMismatch {
expected: BlockLayout,
obtained: BlockLayout,
},
OffsetMismatch {
expected: usize,
obtained: usize,
},
MemberMismatch {
member: String,
err: Box<LayoutMismatchError>,
},
MissingField {
name: String,
},
}Expand description
Error about a block layout mismatch.
Variants§
TypeMismatch
There is a mismatch in the type of one element.
LayoutMismatch
The expected layout is totally different from what we have.
Fields
§
expected: BlockLayoutLayout expected by the shader.
§
obtained: BlockLayoutLayout of the input.
OffsetMismatch
The type of data is good, but there is a misalignment.
Fields
MemberMismatch
There is a mismatch in a submember of this layout.
This is kind of a hierarchy inside the LayoutMismatchErrors.
MissingField
A field is missing in either the expected of the input data layout.
Trait Implementations§
Source§impl Clone for LayoutMismatchError
impl Clone for LayoutMismatchError
Source§fn clone(&self) -> LayoutMismatchError
fn clone(&self) -> LayoutMismatchError
Returns a duplicate 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 LayoutMismatchError
impl Debug for LayoutMismatchError
Source§impl Display for LayoutMismatchError
impl Display for LayoutMismatchError
Source§impl Error for LayoutMismatchError
impl Error for LayoutMismatchError
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()
Auto Trait Implementations§
impl Freeze for LayoutMismatchError
impl RefUnwindSafe for LayoutMismatchError
impl Send for LayoutMismatchError
impl Sync for LayoutMismatchError
impl Unpin for LayoutMismatchError
impl UnwindSafe for LayoutMismatchError
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