Enum nannou::ui::backend::glium::glium::uniforms::LayoutMismatchError [] [src]

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

There is a mismatch in the type of one element.

Fields of TypeMismatch

Type expected by the shader.

Type that you gave.

The expected layout is totally different from what we have.

Fields of LayoutMismatch

Layout expected by the shader.

Layout of the input.

The type of data is good, but there is a misalignment.

Fields of OffsetMismatch

Expected offset of a member.

Offset of the same member in the input.

There is a mismatch in a submember of this layout.

This is kind of a hierarchy inside the LayoutMismatchErrors.

Fields of MemberMismatch

Name of the field.

The sub-error.

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

Fields of MissingField

Name of the field.

Trait Implementations

impl Error for LayoutMismatchError
[src]

[src]

A short description of the error. Read more

[src]

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

impl Clone for LayoutMismatchError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for LayoutMismatchError
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for LayoutMismatchError
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations