Enum librashader_reflect::reflect::semantics::UniformType
source · pub enum UniformType {
Mat4,
Vec4,
Unsigned,
Signed,
Float,
}Expand description
The type of a uniform.
Variants§
Mat4
A matrix of 4x4 floats (mat4).
Vec4
A vector of 4 floats (vec4).
Unsigned
An unsigned integer (uint).
Signed
A signed integer (int).
Float
A floating point number (float).
Trait Implementations§
source§impl Clone for UniformType
impl Clone for UniformType
source§fn clone(&self) -> UniformType
fn clone(&self) -> UniformType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UniformType
impl Debug for UniformType
source§impl Hash for UniformType
impl Hash for UniformType
source§impl Ord for UniformType
impl Ord for UniformType
source§fn cmp(&self, other: &UniformType) -> Ordering
fn cmp(&self, other: &UniformType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<UniformType> for UniformType
impl PartialEq<UniformType> for UniformType
source§fn eq(&self, other: &UniformType) -> bool
fn eq(&self, other: &UniformType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<UniformType> for UniformType
impl PartialOrd<UniformType> for UniformType
source§fn partial_cmp(&self, other: &UniformType) -> Option<Ordering>
fn partial_cmp(&self, other: &UniformType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more