pub struct ShaderModuleBuilder { /* private fields */ }
Expand description

Builder class for creating a shader module.

Implementations§

source

pub fn with_entry_name(self, entry_name: &str) -> Self

Define the shader entry point (Defaults to main)

Attach specializations to the shader.

Builds the shader binary into a shader module located on the GPU. ShaderModules are specific to gfx-hal and can be used for building RenderPipelines

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.