Enum cheddar::GLSLConversionError[][src]

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

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

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

The output must not have a qualifier.

The returned value must not be a struct.

The first field has the wrong type.

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

This variant also gives the index of the field.

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

This variant also gives the index of the field.

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

This variant also gives the index of the field.

The input type is unknown.

Wrong number of arguments.

The type is not a required type name.

The geometry input is wrong.

The geometry input’s dimension is wrong.

The geometry output layout is wrong.

Trait Implementations

impl Clone for GLSLConversionError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GLSLConversionError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for GLSLConversionError
[src]

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

This method tests for !=.

impl Display for GLSLConversionError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations