[][src]Struct nobs_vulkanism_headless::fb::renderpass::Builder

pub struct Builder {
    pub device: Device,
    pub attachments: HashMap<u32, AttachmentDescription>,
    pub depth: Option<u32>,
    pub subpasses: HashMap<u32, SubpassBuilder>,
    pub dependencies: Vec<SubpassDependency>,
}

Builder for Renderpass

Fields

device: Deviceattachments: HashMap<u32, AttachmentDescription>depth: Option<u32>subpasses: HashMap<u32, SubpassBuilder>dependencies: Vec<SubpassDependency>

Methods

impl Builder[src]

pub fn new(device: Device) -> Self[src]

Build a renderpass for the specified device

pub fn attachment(
    &mut self,
    index: u32,
    builder: AttachmentBuilder
) -> &mut Self
[src]

Adds an attachment at position index

pub fn subpass(&mut self, index: u32, builder: SubpassBuilder) -> &mut Self[src]

Adds the subpass at position index

pub fn dependency(&mut self, builder: DependencyBuilder) -> &mut Self[src]

Adds a subpass dependency

pub fn create(&self) -> Result<Renderpass, Error>[src]

Create the Renderpass

Auto Trait Implementations

impl !Send for Builder

impl !Sync for Builder

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.