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§impl PartialOrd for UniformType
impl PartialOrd for UniformType
impl Copy for UniformType
impl Eq for UniformType
impl StructuralPartialEq for UniformType
Auto Trait Implementations§
impl Freeze for UniformType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.