[][src]Enum cheddar::GLSLConversionError

pub enum GLSLConversionError {
    NoVertexShader,
    NoFragmentShader,
    OutputHasMainQualifier,
    ReturnTypeMustBeAStruct(TypeSpecifier),
    WrongOutputFirstField(StructFieldSpecifier),
    OutputFieldCannotBeStruct(usizeStructSpecifier),
    OutputFieldCannotBeTypeName(usizeTypeName),
    OutputFieldCannotHaveSeveralIdentifiers(usizeStructFieldSpecifier),
    UnknownInputType(TypeName),
    WrongNumberOfArgs(ExpectedNumberOfArgsFoundNumberOfArgs),
    NotTypeName,
    WrongGeometryInput,
    WrongGeometryInputDim(usize),
    WrongGeometryOutputLayout(Option<TypeQualifier>),
}

GLSL conversion error.

Such an errors can happen when a module is ill-formed.

Variants

NoVertexShader

No vertex shader was found. A vertex shader is required in order to build a shading pipeline.

NoFragmentShader

No fragment shader was found. A fragment shader is required in order to build a shading pipeline.

OutputHasMainQualifier

The output must not have a qualifier.

ReturnTypeMustBeAStruct(TypeSpecifier)

The returned value must not be a struct.

WrongOutputFirstField(StructFieldSpecifier)

The first field has the wrong type.

OutputFieldCannotBeStruct(usizeStructSpecifier)

The field of a type used as output cannot be a struct.

This variant also gives the index of the field.

OutputFieldCannotBeTypeName(usizeTypeName)

The field of a type used as output cannot be a type name.

This variant also gives the index of the field.

OutputFieldCannotHaveSeveralIdentifiers(usizeStructFieldSpecifier)

The field of a type used as output cannot have several identifiers (only one).

This variant also gives the index of the field.

UnknownInputType(TypeName)

The input type is unknown.

WrongNumberOfArgs(ExpectedNumberOfArgsFoundNumberOfArgs)

Wrong number of arguments.

NotTypeName

The type is not a required type name.

WrongGeometryInput

The geometry input is wrong.

WrongGeometryInputDim(usize)

The geometry input’s dimension is wrong.

WrongGeometryOutputLayout(Option<TypeQualifier>)

The geometry output layout is wrong.

Trait Implementations

impl PartialEq<GLSLConversionError> for GLSLConversionError
[src]

impl Clone for GLSLConversionError
[src]

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

Performs copy-assignment from source. Read more

impl Display for GLSLConversionError
[src]

impl Debug for GLSLConversionError
[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> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<'a, T, C, M> Inspect for T
[src]

impl<'a, T, C, M> Inspect for T
[src]

impl<'a, T, C, M> Inspect for T
[src]