Enum glium::uniforms::LayoutMismatchError
source · 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
Fields
§
expected: BlockLayout
Layout expected by the shader.
§
obtained: BlockLayout
Layout of the input.
The expected layout is totally different from what we have.
OffsetMismatch
Fields
The type of data is good, but there is a misalignment.
MemberMismatch
There is a mismatch in a submember of this layout.
This is kind of a hierarchy inside the LayoutMismatchError
s.
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 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 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 description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
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