Struct nannou_wgpu::BindGroupLayoutBuilder[][src]

pub struct BindGroupLayoutBuilder { /* fields omitted */ }
Expand description

A type aimed at simplifying the creation of a bind group layout.

Implementations

Begin building the bind group layout.

Specify a new binding.

The binding position of each binding will be inferred as the index within the order that they are added to this builder type. If you require manually specifying the binding location, you may be better off not using the BindGroupLayoutBuilder and instead constructing the BindGroupLayout and BindGroup manually.

Add a uniform buffer binding to the layout.

Add a storage buffer binding to the layout.

Add a sampler binding to the layout.

Add a sampler binding to the layout.

Add a texture binding to the layout.

Short-hand for adding a texture binding for a full view of the given texture to the layout.

The multisampled and dimension parameters are retrieved from the Texture itself.

Note that if you wish to take a Cube or CubeArray view of the given texture, you will need to manually specify the TextureViewDimension via the sampled_texture method instead.

Add a storage texture binding to the layout.

Short-hand for adding a storage texture binding for a full view of the given texture to the layout.

The format, dimension and sample_type are inferred from the given texture.

Build the bind group layout from the specified parameters.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.