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
The expected layout is totally different from what we have.
Fields
§
expected: BlockLayout
Layout expected by the shader.
§
obtained: BlockLayout
Layout 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 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)