[][src]Enum azul_core::gl::UniformType

pub enum UniformType {
    Float(f32),
    FloatVec2([f32; 2]),
    FloatVec3([f32; 3]),
    FloatVec4([f32; 4]),
    Int(i32),
    IntVec2([i32; 2]),
    IntVec3([i32; 3]),
    IntVec4([i32; 4]),
    UnsignedInt(u32),
    UnsignedIntVec2([u32; 2]),
    UnsignedIntVec3([u32; 3]),
    UnsignedIntVec4([u32; 4]),
    Matrix2 {
        transpose: bool,
        matrix: [f32; 4],
    },
    Matrix3 {
        transpose: bool,
        matrix: [f32; 9],
    },
    Matrix4 {
        transpose: bool,
        matrix: [f32; 16],
    },
}

Variants

Float(f32)
FloatVec2([f32; 2])
FloatVec3([f32; 3])
FloatVec4([f32; 4])
Int(i32)
IntVec2([i32; 2])
IntVec3([i32; 3])
IntVec4([i32; 4])
UnsignedInt(u32)
UnsignedIntVec2([u32; 2])
UnsignedIntVec3([u32; 3])
UnsignedIntVec4([u32; 4])
Matrix2

Fields of Matrix2

transpose: boolmatrix: [f32; 4]
Matrix3

Fields of Matrix3

transpose: boolmatrix: [f32; 9]
Matrix4

Fields of Matrix4

transpose: boolmatrix: [f32; 16]

Implementations

impl UniformType[src]

pub fn set(self, gl_context: &dyn Gl, location: GLint)[src]

Set a specific uniform

Trait Implementations

impl Clone for UniformType[src]

impl Copy for UniformType[src]

impl Debug for UniformType[src]

impl PartialEq<UniformType> for UniformType[src]

impl PartialOrd<UniformType> for UniformType[src]

impl StructuralPartialEq for UniformType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.