Enum rin::gl::program::UniformValue [−][src]
pub enum UniformValue {}Show variants
Float(f32), Int(i32), UInt(u32), Bool(bool), Mat2([[f32; 2]; 2]), Mat3([[f32; 3]; 3]), Mat4([[f32; 4]; 4]), Vec2(f32, f32), Vec3(f32, f32, f32), Vec4(f32, f32, f32, f32), IVec2(i32, i32), IVec3(i32, i32, i32), IVec4(i32, i32, i32, i32), UVec2(u32, u32), UVec3(u32, u32, u32), UVec4(u32, u32, u32, u32), ArrayFloat(Vec<f32, Global>), ArrayVec2(Vec<[f32; 2], Global>), ArrayVec3(Vec<[f32; 3], Global>), ArrayVec4(Vec<[f32; 4], Global>), ArrayInt(Vec<i32, Global>), ArrayIVec2(Vec<[i32; 2], Global>), ArrayIVec3(Vec<[i32; 3], Global>), ArrayIVec4(Vec<[i32; 4], Global>), ArrayUInt(Vec<u32, Global>), ArrayUVec2(Vec<[u32; 2], Global>), ArrayUVec3(Vec<[u32; 3], Global>), ArrayUVec4(Vec<[u32; 4], Global>), Texture(u32, u32, u32), TextureSampler(u32, u32, u32, u32), UniformBlockBinding(u32), ShaderStorageBlockBinding(u32),
All posible types of uniform values
Including compound ones that are later decomposed
Variants
Float(f32)
Int(i32)
UInt(u32)
Bool(bool)
UniformBlockBinding(u32)
ShaderStorageBlockBinding(u32)
Trait Implementations
impl AsUniform<UniformValue> for UniformValue
[src]
impl AsUniform<UniformValue> for UniformValue
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl Clone for UniformValue
[src]
impl Clone for UniformValue
[src]pub fn clone(&self) -> UniformValue
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<UniformValue> for UniformValue
[src]
impl PartialEq<UniformValue> for UniformValue
[src]pub fn eq(&self, other: &UniformValue) -> bool
[src]
pub fn ne(&self, other: &UniformValue) -> bool
[src]
impl StructuralPartialEq for UniformValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for UniformValue
impl Send for UniformValue
impl Sync for UniformValue
impl Unpin for UniformValue
impl UnwindSafe for UniformValue
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]