[−][src]Struct nobs_vulkanism_headless::fb::renderpass::Builder
Builder for Renderpass
Fields
device: Device
attachments: 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]
&mut self,
index: u32,
builder: AttachmentBuilder
) -> &mut Self
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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,