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
sem_index: SemIndex
Methods
impl<C, T> Uniform<C, T> where C: HasProgram, T: Uniformable<C>
[src]
const fn new(sem_index: SemIndex) -> Uniform<C, T>
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
).
Trait Implementations
impl<C: Debug, T: Debug> Debug for Uniform<C, T> where C: HasProgram,
T: Uniformable<C>
[src]
T: Uniformable<C>