Enum luminance::shader::UniformWarning [−][src]
#[non_exhaustive]
pub enum UniformWarning {
Inactive(String),
TypeMismatch(String, UniformType),
UnsupportedType(String, UniformType),
SizeMismatch {
name: String,
size: usize,
found_size: usize,
},
}
Expand description
Warnings related to uniform issues.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Inactive(String)
Tuple Fields
0: 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.
SizeMismatch
Fields
name: String
Name of the uniform.
size: usize
Size of the uniform (static).
found_size: usize
Found size of the uniform (in the shader).
Size mismatch between the static requested type (i.e. the T
in Uniform<T>
for instance)
and the size that got reflected from the backend in the shaders.
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 !=
.