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: u32Slot 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>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BindGroupEntry<'a>
impl<'a> !UnwindSafe for BindGroupEntry<'a>
impl<'a> Forget for BindGroupEntry<'a>
impl<'a> Freeze for BindGroupEntry<'a>
impl<'a> Move for BindGroupEntry<'a>
impl<'a> Send for BindGroupEntry<'a>
impl<'a> Sync for BindGroupEntry<'a>where
Arc<CoreBuffer>: Sync,
WebBuffer: Sync,
Arc<dyn BufferInterface>: Sync,
Arc<Mutex<MapContext>>: Sync,
InternalBitFlags: Sync,
NonZero<u64>: Sync,
Arc<CoreSampler>: Sync,
WebSampler: Sync,
Arc<dyn SamplerInterface>: Sync,
Arc<CoreTextureView>: Sync,
WebTextureView: Sync,
Arc<dyn TextureViewInterface>: Sync,
Arc<CoreTexture>: Sync,
WebTexture: Sync,
Arc<dyn TextureInterface>: Sync,
InternalBitFlags: Sync,
Arc<CoreTlas>: Sync,
WebTlas: Sync,
Arc<dyn TlasInterface>: Sync,
RawVecInner: Sync,
Arc<CoreBlas>: Sync,
WebBlas: Sync,
Arc<dyn BlasInterface>: Sync,
Arc<CoreExternalTexture>: Sync,
WebExternalTexture: Sync,
Arc<dyn ExternalTextureInterface>: Sync,
impl<'a> Unpin for BindGroupEntry<'a>
impl<'a> UnsafeUnpin for BindGroupEntry<'a>where
&'a Buffer: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'a [BufferBinding<'a>]: UnsafeUnpin,
&'a Sampler: UnsafeUnpin,
&'a [&'a Sampler]: UnsafeUnpin,
&'a TextureView: UnsafeUnpin,
&'a [&'a TextureView]: UnsafeUnpin,
&'a Tlas: UnsafeUnpin,
&'a [&'a Tlas]: UnsafeUnpin,
&'a ExternalTexture: UnsafeUnpin,
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