Struct gfx_hal::pso::DescriptorSetWrite
source · pub struct DescriptorSetWrite<'a, B: Backend, WI>where
WI: IntoIterator,
WI::Item: Borrow<Descriptor<'a, B>>,{
pub set: &'a B::DescriptorSet,
pub binding: DescriptorBinding,
pub array_offset: DescriptorArrayIndex,
pub descriptors: WI,
}
Expand description
Writes the actual descriptors to be bound into a descriptor set. Should be provided
to the write_descriptor_sets
method of a Device
.
Fields
set: &'a B::DescriptorSet
binding: DescriptorBinding
Note: when there is more descriptors provided than array elements left in the specified binding starting at specified, offset, the updates are spilled onto the next binding (starting with offset 0), and so on.
array_offset: DescriptorArrayIndex
descriptors: WI
Auto Trait Implementations
impl<'a, B, WI> RefUnwindSafe for DescriptorSetWrite<'a, B, WI>where
WI: RefUnwindSafe,
<B as Backend>::DescriptorSet: RefUnwindSafe,
impl<'a, B, WI> Send for DescriptorSetWrite<'a, B, WI>where
WI: Send,
impl<'a, B, WI> Sync for DescriptorSetWrite<'a, B, WI>where
WI: Sync,
impl<'a, B, WI> Unpin for DescriptorSetWrite<'a, B, WI>where
WI: Unpin,
impl<'a, B, WI> UnwindSafe for DescriptorSetWrite<'a, B, WI>where
WI: UnwindSafe,
<B as Backend>::DescriptorSet: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more