Enum luminance::shader::UniformWarning [−][src]
#[non_exhaustive] pub enum UniformWarning { Inactive(String), TypeMismatch(String, UniformType), UnsupportedType(String, UniformType), }
Expand description
Warnings related to uniform issues.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Inactive(String)
Inactive uniform (not in use / no participation to the final output in shaders).
TypeMismatch(String, UniformType)
Type mismatch between the static requested type (i.e. the T
in Uniform<T>
for instance)
and the type that got reflected from the backend in the shaders.
The String
is the name of the uniform; the second one gives the type mismatch.
UnsupportedType(String, UniformType)
The requested type is unsupported by the backend.
The String
is the name of the uniform. The UniformType
is the type that is not
supported by the backend.
Implementations
Create a type mismatch.
Create an unsupported type error.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UniformWarning
impl Send for UniformWarning
impl Sync for UniformWarning
impl Unpin for UniformWarning
impl UnwindSafe for UniformWarning