Struct luminance::shader::UniformBuilder[][src]

pub struct UniformBuilder<'a, B> where
    B: ?Sized + Shader
{ /* fields omitted */ }
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 the Shader trait.

Implementations

Ask the creation of a Uniform, identified by its name.

Ask the creation of a Uniform, identified by its name.

If the name is not found, an unbound Uniform is returned (i.e. a Uniform) that does nothing.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.