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

pub struct DescriptorBufferInfoBuilder { /* fields omitted */ }

Builder for a descriptor buffer info to write a buffer binding

Default initialized to

  • buffer: vk::NULL_HANDLE
  • offset: 0
  • range: vk::WHOLE_SIZE

Methods

impl DescriptorBufferInfoBuilder[src]

pub fn set(
    self,
    buffer: u64,
    offset: u64,
    range: u64
) -> DescriptorBufferInfoBuilder
[src]

Sets the complete configuration

Arguments

  • buffer - buffer handle to write
  • offset - offset into the buffer in bytes
  • range - size of the bound range of the buffer

pub fn buffer(self, buffer: u64) -> DescriptorBufferInfoBuilder[src]

Sets the buffer handle

pub fn offset(self, offset: u64) -> DescriptorBufferInfoBuilder[src]

Sets the off set into the buffer

pub fn range(self, range: u64) -> DescriptorBufferInfoBuilder[src]

Sets the bound size of the buffer

pub fn get(self) -> DescriptorBufferInfo[src]

Gets the configured vk::DescriptorBufferInfo, consumes the builder

Trait Implementations

impl Default for DescriptorBufferInfoBuilder[src]

Auto Trait Implementations

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.