logo
pub struct Program<B, Sem, Out, Uni> where
    B: Shader
{ /* private fields */ }
Expand description

A shader program.

Shader programs are GPU binaries that execute when a draw command is issued.

Parametricity

Implementations

Create a new UniformInterface but keep the Program around without rebuilding it.

Parametricity

Create a new UniformInterface but keep the Program around without rebuilding it, by using a mutable environment variable.

Parametricity

Re-create the UniformInterface but keep the Program around without rebuilding it.

Parametricity
  • E is the mutable environment variable.

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.