pub struct BindGroup { /* private fields */ }
Expand description
Handle to a binding group.
A BindGroup
represents the set of resources bound to the bindings described by a
BindGroupLayout
. It can be created with Device::create_bind_group
. A BindGroup
can
be bound to a particular RenderPass
with RenderPass::set_bind_group
, or to a
ComputePass
with ComputePass::set_bind_group
.
Corresponds to WebGPU GPUBindGroup
.
Implementations§
Source§impl BindGroup
impl BindGroup
Sourcepub fn global_id(&self) -> Id<BindGroup>
Available on crate feature expose-ids
only.
pub fn global_id(&self) -> Id<BindGroup>
expose-ids
only.Returns a globally-unique identifier for this BindGroup
.
Calling this method multiple times on the same object will always return the same value.
The returned value is guaranteed to be unique among all BindGroup
s created from the same
Instance
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BindGroup
impl !RefUnwindSafe for BindGroup
impl Send for BindGroup
impl Sync for BindGroup
impl Unpin for BindGroup
impl !UnwindSafe for BindGroup
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