Enum radiant_rs::Uniform[][src]

pub enum Uniform {
    Bool(bool),
    SignedInt(i32),
    UnsignedInt(u32),
    Float(f32),
    Mat4([[f32; 4]; 4]),
    Vec2([f32; 2]),
    Vec3([f32; 3]),
    Vec4([f32; 4]),
    Double(f64),
    DoubleMat4([[f64; 4]; 4]),
    DoubleVec2([f64; 2]),
    DoubleVec3([f64; 3]),
    DoubleVec4([f64; 4]),
    Texture(Texture),
}

A uniform value.

Uniforms are values that can be passed to Programs. Various types also implement the AsUniform trait and can be directly used with Program::set_uniform().

Variants

Trait Implementations

impl Clone for Uniform
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Uniform
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Uniform

impl !Sync for Uniform