Struct gfx_hal::pso::DescriptorSetCopy
source · [−]pub struct DescriptorSetCopy<'a, B: Backend> {
pub src_set: &'a B::DescriptorSet,
pub src_binding: DescriptorBinding,
pub src_array_offset: DescriptorArrayIndex,
pub dst_set: &'a mut B::DescriptorSet,
pub dst_binding: DescriptorBinding,
pub dst_array_offset: DescriptorArrayIndex,
pub count: usize,
}
Expand description
Copies a range of descriptors to be bound from one descriptor set to another.
Should be provided to the copy_descriptor_sets
method of a Device
.
Fields
src_set: &'a B::DescriptorSet
Descriptor set to copy from.
src_binding: DescriptorBinding
Binding to copy from.
Note: when there are more descriptors required than array elements left in the specified binding starting at the specified offset, the updates are taken from the next binding (starting with offset 0), and so on.
src_array_offset: DescriptorArrayIndex
Offset into the descriptor array to start copying from.
dst_set: &'a mut B::DescriptorSet
Descriptor set to copy to.
dst_binding: DescriptorBinding
Binding to copy to.
Note: when there are more descriptors provided than array elements left in the specified binding starting at the specified offset, the updates are spilled onto the next binding (starting with offset 0), and so on.
dst_array_offset: DescriptorArrayIndex
Offset into the descriptor array to copy to.
count: usize
How many descriptors to copy.
Trait Implementations
sourceimpl<'a, B: Debug + Backend> Debug for DescriptorSetCopy<'a, B> where
B::DescriptorSet: Debug,
B::DescriptorSet: Debug,
impl<'a, B: Debug + Backend> Debug for DescriptorSetCopy<'a, B> where
B::DescriptorSet: Debug,
B::DescriptorSet: Debug,
Auto Trait Implementations
impl<'a, B> RefUnwindSafe for DescriptorSetCopy<'a, B> where
<B as Backend>::DescriptorSet: RefUnwindSafe,
impl<'a, B> Send for DescriptorSetCopy<'a, B>
impl<'a, B> Sync for DescriptorSetCopy<'a, B>
impl<'a, B> Unpin for DescriptorSetCopy<'a, B>
impl<'a, B> !UnwindSafe for DescriptorSetCopy<'a, B>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more