Struct luminance::shader::uniform::Uniform [] [src]

pub struct Uniform<C, T> where C: HasUniform, T: Uniformable {
    pub repr: C::U,
    // some fields omitted
}

A shader uniform. Uniform<C, T> doesn’t hold any value. It’s more like a mapping between the host code and the shader the uniform was retrieved from.

Fields

repr: C::U

Methods

impl<C, T> Uniform<C, T> where C: HasUniform, T: Uniformable
[src]

fn new(repr: C::U) -> Uniform<C, T>

fn update(&self, x: T)

Trait Implementations

impl<C: Debug, T: Debug> Debug for Uniform<C, T> where C: HasUniform, T: Uniformable, C::U: Debug
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.