Struct luminance::shader::program::UniformBuilder
[−]
[src]
pub struct UniformBuilder<'a> { /* fields omitted */ }
Build uniforms to fold them to a uniform interface.
Methods
impl<'a> UniformBuilder<'a>
[src]
fn ask<T>(&self, name: &str) -> Result<Uniform<T>, UniformWarning> where
T: Uniformable,
[src]
T: Uniformable,
Have the builder hand you a Uniform
of the type of your choice. Keep in mind that it’s
possible that this function fails if you ask for a type that is not the one defined in the
shader.
fn unbound<T>(&self) -> Uniform<T> where
T: Uniformable,
[src]
T: Uniformable,
Special uniform that won’t do anything.
Use that function when you need a uniform to complete a uniform interface but you’re sure you won’t use it.