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

pub struct Uniform<T> { /* 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.

Methods

impl<T> Uniform<T> where T: Uniformable
[src]

Create a new uniform from a semantic index.

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

Lazily alter the content of a uniform.

Trait Implementations

impl<T: Debug> Debug for Uniform<T>
[src]

Formats the value using the given formatter.