[][src]Struct nobs_vulkanism_headless::fb::framebuffer::RenderpassFramebufferBuilder

pub struct RenderpassFramebufferBuilder<'a, 'b> { /* fields omitted */ }

Builder for Framebuffer

This builder is specialized in a way that we do not need to specify any images as attachments. For attachments in the renderpass that have not been externally specified with target the builder creates new images automatically.

Methods

impl<'a, 'b> RenderpassFramebufferBuilder<'a, 'b>[src]

pub fn new(pass: &'b Renderpass, alloc: &'a mut Allocator) -> Self[src]

Build a new framebuffer for the specified renderpass

pub fn target(self, index: usize, image: Image) -> Self[src]

Specify image as rendertarget at position index.

The builder will use the specified image as attachment. For the attachment at position index no image will be created in create. An image view will still be created.

pub fn extent(self, extent: Extent2D) -> Self[src]

Specyfy the extent of all attachments

pub fn create(self) -> Framebuffer[src]

Creates the Framebuffer

This will create an image and image view for every attachment, except an image has been set. Images are created with the Allocator that has been specified in the builders constructor.

Auto Trait Implementations

impl<'a, 'b> Send for RenderpassFramebufferBuilder<'a, 'b>

impl<'a, 'b> Sync for RenderpassFramebufferBuilder<'a, 'b>

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.