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]
const fn new(sem_index: SemIndex) -> Uniform<T>
Create a new uniform from a semantic index.
fn sem(&self, name: &str) -> Sem
Create a Sem
by giving a mapping name. The Type
and Dim
are reified using the static
type of the uniform (T
).
fn alter(&self, value: T) -> AlterUniform
Lazily alter the content of a uniform.