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.
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.
OutputHasMainQualifier
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.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more