Struct wgpu_hal::BindGroupDescriptor
source · pub struct BindGroupDescriptor<'a, Bgl: DynBindGroupLayout + ?Sized, B: DynBuffer + ?Sized, S: DynSampler + ?Sized, T: DynTextureView + ?Sized, A: DynAccelerationStructure + ?Sized> {
pub label: Label<'a>,
pub layout: &'a Bgl,
pub buffers: &'a [BufferBinding<'a, B>],
pub samplers: &'a [&'a S],
pub textures: &'a [TextureBinding<'a, T>],
pub entries: &'a [BindGroupEntry],
pub acceleration_structures: &'a [&'a A],
}
Expand description
BindGroup descriptor.
Valid usage:
. - entries
has to be sorted by ascending BindGroupEntry::binding
. - entries
has to have the same set of BindGroupEntry::binding
as layout
. - each entry has to be compatible with the layout
. - each entry’s BindGroupEntry::resource_index
is within range
of the corresponding resource array, selected by the relevant
BindGroupLayoutEntry
.
Fields§
§label: Label<'a>
§layout: &'a Bgl
§buffers: &'a [BufferBinding<'a, B>]
§samplers: &'a [&'a S]
§textures: &'a [TextureBinding<'a, T>]
§entries: &'a [BindGroupEntry]
§acceleration_structures: &'a [&'a A]
Trait Implementations§
source§impl<'a, Bgl: Clone + DynBindGroupLayout + ?Sized, B: Clone + DynBuffer + ?Sized, S: Clone + DynSampler + ?Sized, T: Clone + DynTextureView + ?Sized, A: Clone + DynAccelerationStructure + ?Sized> Clone for BindGroupDescriptor<'a, Bgl, B, S, T, A>
impl<'a, Bgl: Clone + DynBindGroupLayout + ?Sized, B: Clone + DynBuffer + ?Sized, S: Clone + DynSampler + ?Sized, T: Clone + DynTextureView + ?Sized, A: Clone + DynAccelerationStructure + ?Sized> Clone for BindGroupDescriptor<'a, Bgl, B, S, T, A>
source§fn clone(&self) -> BindGroupDescriptor<'a, Bgl, B, S, T, A>
fn clone(&self) -> BindGroupDescriptor<'a, Bgl, B, S, T, 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 moresource§impl<'a, Bgl: Debug + DynBindGroupLayout + ?Sized, B: Debug + DynBuffer + ?Sized, S: Debug + DynSampler + ?Sized, T: Debug + DynTextureView + ?Sized, A: Debug + DynAccelerationStructure + ?Sized> Debug for BindGroupDescriptor<'a, Bgl, B, S, T, A>
impl<'a, Bgl: Debug + DynBindGroupLayout + ?Sized, B: Debug + DynBuffer + ?Sized, S: Debug + DynSampler + ?Sized, T: Debug + DynTextureView + ?Sized, A: Debug + DynAccelerationStructure + ?Sized> Debug for BindGroupDescriptor<'a, Bgl, B, S, T, A>
Auto Trait Implementations§
impl<'a, Bgl, B, S, T, A> Freeze for BindGroupDescriptor<'a, Bgl, B, S, T, A>
impl<'a, Bgl, B, S, T, A> RefUnwindSafe for BindGroupDescriptor<'a, Bgl, B, S, T, A>where
Bgl: RefUnwindSafe + ?Sized,
S: RefUnwindSafe + ?Sized,
A: RefUnwindSafe + ?Sized,
B: RefUnwindSafe + ?Sized,
T: RefUnwindSafe + ?Sized,
impl<'a, Bgl, B, S, T, A> Send for BindGroupDescriptor<'a, Bgl, B, S, T, A>
impl<'a, Bgl, B, S, T, A> Sync for BindGroupDescriptor<'a, Bgl, B, S, T, A>
impl<'a, Bgl, B, S, T, A> Unpin for BindGroupDescriptor<'a, Bgl, B, S, T, A>
impl<'a, Bgl, B, S, T, A> UnwindSafe for BindGroupDescriptor<'a, Bgl, B, S, T, A>where
Bgl: RefUnwindSafe + ?Sized,
S: RefUnwindSafe + ?Sized,
A: RefUnwindSafe + ?Sized,
B: RefUnwindSafe + ?Sized,
T: RefUnwindSafe + ?Sized,
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