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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.