[][src]Struct nobs_vulkanism_headless::pipes::descriptor::writes::Writes

pub struct Writes { /* fields omitted */ }

Builder for updating a descriptor set

Aggregates vk::DescriptorBufferInfos, vk::DescriptorImageInfos and vk::BufferViews that have been configured with buffer or image or buffer_view.

Methods

impl Writes[src]

pub fn new(device: u64, dset: u64) -> Writes[src]

Creates a new builder for the specified descriptor set and device with no writes

Arguments

  • device - device handle
  • dset - descriptor set to be updated

pub fn push_buffer(
    &mut self,
    binding: u32,
    array_elem: u32,
    ty: u32,
    info: DescriptorBufferInfo
)
[src]

Sets the sepecified buffer for the binding, array element and descriptor type

pub fn push_image(
    &mut self,
    binding: u32,
    array_elem: u32,
    ty: u32,
    info: DescriptorImageInfo
)
[src]

Sets the sepecified image for the binding, array element and descriptor type

pub fn push_bufferview(
    &mut self,
    binding: u32,
    array_elem: u32,
    ty: u32,
    info: u64
)
[src]

Sets the sepecified buffer view for the binding, array element and descriptor type

pub fn buffer<F>(
    &mut self,
    binding: u32,
    array_elem: u32,
    ty: u32,
    f: F
) -> &mut Writes where
    F: Fn(DescriptorBufferInfoBuilder) -> DescriptorBufferInfoBuilder
[src]

Adds a new buffer write for the specified binding and array with the builder returned by the lambda

pub fn image<F>(
    &mut self,
    binding: u32,
    array_elem: u32,
    ty: u32,
    f: F
) -> &mut Writes where
    F: Fn(DescriptorImageInfoBuilder) -> DescriptorImageInfoBuilder
[src]

Adds a new image write for the specified binding and array with the builder returned by the lambda

pub fn buffer_view(
    &mut self,
    binding: u32,
    array_elem: u32,
    ty: u32,
    view: u64
) -> &mut Writes
[src]

Adds a new buffer view write for the specified binding and array

pub fn update(&mut self)[src]

Updates the descriptor set with the configured writes

Auto Trait Implementations

impl !Send for Writes

impl !Sync for Writes

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.