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

pub struct Uniform<C, T> where C: HasProgram, T: Uniformable<C> {
    pub sem_index: SemIndex,
    // some fields omitted
}

A shader uniform. Uniform<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

Methods

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

Create a Sem by giving a mapping name. The Type and Dim are reified using the static type of the uniform (T).

Trait Implementations

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

Formats the value using the given formatter.