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 for UniformType
impl PartialEq 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 for UniformType
impl PartialOrd 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 moreimpl Copy for UniformType
impl Eq for UniformType
impl StructuralPartialEq for UniformType
Auto Trait Implementations§
impl RefUnwindSafe for UniformType
impl Send for UniformType
impl Sync for UniformType
impl Unpin for UniformType
impl UnwindSafe for UniformType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more