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
Auto Trait Implementations§
impl Freeze for BindGroupBuilder
impl !RefUnwindSafe for BindGroupBuilder
impl Send for BindGroupBuilder
impl Sync for BindGroupBuilder
impl Unpin for BindGroupBuilder
impl !UnwindSafe for BindGroupBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more