Enum gfx::pso::ElementError [] [src]

pub enum ElementError<S> {
    NotFound(S),
    Offset {
        name: S,
        shader_offset: ElemOffset,
        code_offset: ElemOffset,
    },
    Format {
        name: S,
        shader_format: ConstFormat,
        code_format: ConstFormat,
    },
}

Error matching an element inside the constant buffer.

Variants

Element not found.

Element offset mismatch.

Fields of Offset

Element name.

Element byte offset in the shader-side constant buffer.

Element byte offset in the code-side constant buffer.

Element format mismatch.

Fields of Format

Element name.

Element format in the shader-side constant buffer.

Element format in the code-side constant buffer.

Trait Implementations

impl<S: Clone> Clone for ElementError<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for ElementError<S>
[src]

Formats the value using the given formatter.

impl<S: PartialEq> PartialEq for ElementError<S>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S: Debug + Display> Display for ElementError<S>
[src]

Formats the value using the given formatter. Read more

impl<S: Debug + Display> Error for ElementError<S>
[src]

A short description of the error. Read more

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

impl<'a> From<ElementError<&'a str>> for ElementError<String>
[src]

Performs the conversion.