Struct luminance::shader::UniformBuilder [−][src]
Expand description
A builder of Uniform
.
A UniformBuilder
is an important type as it’s the only one that allows to safely create
Uniform
values.
Parametricity
B
is the backend type. It must implement theShader
trait.
Implementations
pub fn ask<T>(&mut self, name: &str) -> Result<Uniform<T>, UniformWarning> where
B: for<'u> Uniformable<'u, T>,
pub fn ask<T>(&mut self, name: &str) -> Result<Uniform<T>, UniformWarning> where
B: for<'u> Uniformable<'u, T>,
Ask the creation of a Uniform
, identified by its name
.