Struct wgpu::BindGroupEntry
source · pub struct BindGroupEntry<'a> {
pub binding: u32,
pub resource: BindingResource<'a>,
}
Expand description
An element of a BindGroupDescriptor
, consisting of a bindable resource
and the slot to bind it to.
Corresponds to WebGPU GPUBindGroupEntry
.
Fields§
§binding: u32
Slot for which binding provides resource. Corresponds to an entry of the same
binding index in the BindGroupLayoutDescriptor
.
resource: BindingResource<'a>
Resource to attach to the binding
Trait Implementations§
source§impl<'a> Clone for BindGroupEntry<'a>
impl<'a> Clone for BindGroupEntry<'a>
source§fn clone(&self) -> BindGroupEntry<'a>
fn clone(&self) -> BindGroupEntry<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more