Enum gfx::UniformValue
source · pub enum UniformValue {
Show 15 variants
I32(i32),
U32(u32),
F32(f32),
I32Vector2([i32; 2]),
I32Vector3([i32; 3]),
I32Vector4([i32; 4]),
U32Vector2([u32; 2]),
U32Vector3([u32; 3]),
U32Vector4([u32; 4]),
F32Vector2([f32; 2]),
F32Vector3([f32; 3]),
F32Vector4([f32; 4]),
F32Matrix2([[f32; 2]; 2]),
F32Matrix3([[f32; 3]; 3]),
F32Matrix4([[f32; 4]; 4]),
}
Expand description
A value that can be uploaded to the device as a uniform.
Variants§
I32(i32)
U32(u32)
F32(f32)
I32Vector2([i32; 2])
I32Vector3([i32; 3])
I32Vector4([i32; 4])
U32Vector2([u32; 2])
U32Vector3([u32; 3])
U32Vector4([u32; 4])
F32Vector2([f32; 2])
F32Vector3([f32; 3])
F32Vector4([f32; 4])
F32Matrix2([[f32; 2]; 2])
F32Matrix3([[f32; 3]; 3])
F32Matrix4([[f32; 4]; 4])
Trait Implementations§
source§impl Clone for UniformValue
impl Clone for UniformValue
source§fn clone(&self) -> UniformValue
fn clone(&self) -> UniformValue
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 UniformValue
impl Debug for UniformValue
source§impl PartialEq<UniformValue> for UniformValue
impl PartialEq<UniformValue> for UniformValue
source§fn eq(&self, other: &UniformValue) -> bool
fn eq(&self, other: &UniformValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UniformValue> for UniformValue
impl PartialOrd<UniformValue> for UniformValue
source§fn partial_cmp(&self, other: &UniformValue) -> Option<Ordering>
fn partial_cmp(&self, other: &UniformValue) -> 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