[][src]Enum processing::uniforms::LayoutMismatchError

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,
    },
}

Error about a block layout mismatch.

Variants

TypeMismatch

There is a mismatch in the type of one element.

Fields of TypeMismatch

expected: UniformType

Type expected by the shader.

obtained: UniformType

Type that you gave.

LayoutMismatch

The expected layout is totally different from what we have.

Fields of LayoutMismatch

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 of OffsetMismatch

expected: usize

Expected offset of a member.

obtained: usize

Offset of the same member in the input.

MemberMismatch

There is a mismatch in a submember of this layout.

This is kind of a hierarchy inside the LayoutMismatchErrors.

Fields of MemberMismatch

member: String

Name of the field.

err: Box<LayoutMismatchError>

The sub-error.

MissingField

A field is missing in either the expected of the input data layout.

Fields of MissingField

name: String

Name of the field.

Trait Implementations

impl Display for LayoutMismatchError[src]

impl Error for LayoutMismatchError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

The lower-level source of this error, if any. Read more

impl Clone for LayoutMismatchError[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for LayoutMismatchError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T[src]