gfx_hal::pso

Struct 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§

Source§

impl<'a, B: Debug + Backend> Debug for DescriptorSetCopy<'a, B>
where B::DescriptorSet: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, B> Freeze for DescriptorSetCopy<'a, B>

§

impl<'a, B> RefUnwindSafe for DescriptorSetCopy<'a, B>

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.