[][src]Struct bedrock::RenderPassBuilder

pub struct RenderPassBuilder { /* fields omitted */ }

Builder structure to construct the RenderPass

Methods

impl RenderPassBuilder[src]

pub fn new() -> Self[src]

pub fn add_attachment(&mut self, desc: AttachmentDescription) -> &mut Self[src]

pub fn add_subpass(&mut self, desc: SubpassDescription) -> &mut Self[src]

pub fn add_dependency(&mut self, desc: VkSubpassDependency) -> &mut Self[src]

pub fn add_attachments<Collection: IntoIterator<Item = AttachmentDescription>>(
    &mut self,
    collection: Collection
) -> &mut Self
[src]

pub fn add_subpasses<Collection: IntoIterator<Item = SubpassDescription>>(
    &mut self,
    collection: Collection
) -> &mut Self
[src]

pub fn add_dependencies<Collection: IntoIterator<Item = VkSubpassDependency>>(
    &mut self,
    collection: Collection
) -> &mut Self
[src]

pub fn mod_attachment(&mut self, index: usize) -> &mut AttachmentDescription[src]

pub fn mod_subpass(&mut self, index: usize) -> &mut SubpassDescription[src]

pub fn mod_dependency(&mut self, index: usize) -> &mut VkSubpassDependency[src]

impl RenderPassBuilder[src]

pub fn create(&self, device: &Device) -> Result<RenderPass>[src]

Create a new render pass object

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

Auto Trait Implementations

impl RefUnwindSafe for RenderPassBuilder

impl Send for RenderPassBuilder

impl Sync for RenderPassBuilder

impl Unpin for RenderPassBuilder

impl UnwindSafe for RenderPassBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.