logo
pub struct ProgramBuilder<'a, C, Sem, Out, Uni> { /* private fields */ }
Expand description

A Program builder.

This type allows to create shader programs without having to worry too much about the highly generic API.

Implementations

Create a new ProgramBuilder from a GraphicsContext.

Create a Program by linking Stages and accessing a mutable environment variable.

Parametricity
Notes

Feel free to look at the documentation of GraphicsContext::new_shader_program for a simpler interface.

Create a Program by linking Stages.

Parametricity
Notes

Feel free to look at the documentation of GraphicsContext::new_shader_program for a simpler interface.

Create a Program by linking &strs and accessing a mutable environment variable.

Parametricity
Notes

Feel free to look at the documentation of GraphicsContext::new_shader_program for a simpler interface.

Create a Program by linking &strs.

Parametricity
Notes

Feel free to look at the documentation of GraphicsContext::new_shader_program for a simpler interface.

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.