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(f32f32), Vec3(f32f32f32), Vec4(f32f32f32f32), IVec2(i32i32), IVec3(i32i32i32), IVec4(i32i32i32i32), UVec2(u32u32), UVec3(u32u32u32), UVec4(u32u32u32u32), 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(u32u32u32), TextureSampler(u32u32u32u32), 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)
Mat2([[f32; 2]; 2])
Mat3([[f32; 3]; 3])
Mat4([[f32; 4]; 4])
Vec2(f32f32)
Vec3(f32f32f32)
Vec4(f32f32f32f32)
IVec2(i32i32)
IVec3(i32i32i32)
IVec4(i32i32i32i32)
UVec2(u32u32)
UVec3(u32u32u32)
UVec4(u32u32u32u32)
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(u32u32u32)
TextureSampler(u32u32u32u32)
UniformBlockBinding(u32)
ShaderStorageBlockBinding(u32)

Trait Implementations

impl AsUniform<UniformValue> for UniformValue[src]

impl Clone for UniformValue[src]

impl Debug for UniformValue[src]

impl PartialEq<UniformValue> for UniformValue[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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]