Enum cheddar::GLSLConversionError [−][src]
pub enum GLSLConversionError { NoVertexShader, NoFragmentShader, OutputHasMainQualifier, ReturnTypeMustBeAStruct(TypeSpecifier), WrongOutputFirstField(StructFieldSpecifier), OutputFieldCannotBeStruct(usize, StructSpecifier), OutputFieldCannotBeTypeName(usize, TypeName), OutputFieldCannotHaveSeveralIdentifiers(usize, StructFieldSpecifier), UnknownInputType(TypeName), WrongNumberOfArgs(ExpectedNumberOfArgs, FoundNumberOfArgs), 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(usize, StructSpecifier)
The field of a type used as output cannot be a struct.
This variant also gives the index of the field.
OutputFieldCannotBeTypeName(usize, TypeName)
The field of a type used as output cannot be a type name.
This variant also gives the index of the field.
OutputFieldCannotHaveSeveralIdentifiers(usize, StructFieldSpecifier)
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(ExpectedNumberOfArgs, FoundNumberOfArgs)
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 Clone for GLSLConversionError
[src]
impl Clone for GLSLConversionError
fn clone(&self) -> GLSLConversionError
[src]
fn clone(&self) -> GLSLConversionError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for GLSLConversionError
[src]
impl Debug for GLSLConversionError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for GLSLConversionError
[src]
impl PartialEq for GLSLConversionError
fn eq(&self, other: &GLSLConversionError) -> bool
[src]
fn eq(&self, other: &GLSLConversionError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GLSLConversionError) -> bool
[src]
fn ne(&self, other: &GLSLConversionError) -> bool
This method tests for !=
.
impl Display for GLSLConversionError
[src]
impl Display for GLSLConversionError
Auto Trait Implementations
impl Send for GLSLConversionError
impl Send for GLSLConversionError
impl Sync for GLSLConversionError
impl Sync for GLSLConversionError