Struct DescriptorSetWrite

Source
pub struct DescriptorSetWrite<'a, B, WI>
where B: Backend, WI: IntoIterator, <WI as IntoIterator>::Item: Borrow<Descriptor<'a, B>>,
{ pub set: &'a <B as Backend>::DescriptorSet, pub binding: u32, pub array_offset: usize, 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 as Backend>::DescriptorSet§binding: u32

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: usize§descriptors: WI

Trait Implementations§

Source§

impl<'a, B, WI> Debug for DescriptorSetWrite<'a, B, WI>
where B: Debug + Backend, WI: Debug + IntoIterator, <WI as IntoIterator>::Item: Borrow<Descriptor<'a, B>>, <B as Backend>::DescriptorSet: Debug,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, B, WI> Freeze for DescriptorSetWrite<'a, B, WI>
where WI: Freeze,

§

impl<'a, B, WI> RefUnwindSafe for DescriptorSetWrite<'a, B, WI>

§

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>

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.