[][src]Struct nobs_vkpipes::descriptor::writes::DescriptorImageInfoBuilder

pub struct DescriptorImageInfoBuilder { /* fields omitted */ }

Builder for a descriptor image info to write an image binding

Default initialized to

  • image view: vk::NULL_HANDLE
  • sampler: vk::NULL_HANDLE
  • layout: vk::IMAGE_LAYOUT_UNDEFINED

Methods

impl DescriptorImageInfoBuilder[src]

pub fn with_layout(layout: ImageLayout) -> DescriptorImageInfoBuilder[src]

Create builder with the specified image layout and vk::NULL_HANDLEs for image view and sampler

pub fn set(
    self,
    layout: ImageLayout,
    image_view: ImageView,
    sampler: Sampler
) -> DescriptorImageInfoBuilder
[src]

Sets the complete configuration

Arguments

  • layout - layout of the image
  • image_view - image view to be bound
  • sampler - sampler used for the image

pub fn layout(self, layout: ImageLayout) -> DescriptorImageInfoBuilder[src]

Sets the layout of the bound image view

pub fn image(self, view: ImageView) -> DescriptorImageInfoBuilder[src]

Sets the image view to be bound

pub fn sampler(self, sampler: Sampler) -> DescriptorImageInfoBuilder[src]

Sets the sampler to be bound

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

Gets the configured vk::DescriptorImageInfo, consumes the builder

Trait Implementations

impl Default for DescriptorImageInfoBuilder[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.