Struct simple_wgpu::BindGroupBuilder
source · pub struct BindGroupBuilder { /* private fields */ }
Expand description
Builds a BindGroup
Implementations§
source§impl BindGroupBuilder
impl BindGroupBuilder
sourcepub fn name(self, name: &str) -> Self
pub fn name(self, name: &str) -> Self
Set the optional debug name. This may appear in error messages and GPU profiler traces
sourcepub fn buffer(
self,
binding: usize,
visibility: ShaderStages,
buffer: &BufferBinding,
size: Option<usize>
) -> Self
pub fn buffer( self, binding: usize, visibility: ShaderStages, buffer: &BufferBinding, size: Option<usize> ) -> Self
Bind a Buffer to this bind group
sourcepub fn texture(
self,
binding: usize,
visibility: ShaderStages,
texture: &TextureBinding
) -> Self
pub fn texture( self, binding: usize, visibility: ShaderStages, texture: &TextureBinding ) -> Self
Bind a Texture to this bind group