Struct ash::vk::RenderingInfoBuilder
source · pub struct RenderingInfoBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> RenderingInfoBuilder<'a>
impl<'a> RenderingInfoBuilder<'a>
pub fn flags(self, flags: RenderingFlags) -> Self
pub fn render_area(self, render_area: Rect2D) -> Self
pub fn layer_count(self, layer_count: u32) -> Self
pub fn view_mask(self, view_mask: u32) -> Self
pub fn color_attachments( self, color_attachments: &'a [RenderingAttachmentInfo] ) -> Self
pub fn depth_attachment( self, depth_attachment: &'a RenderingAttachmentInfo ) -> Self
pub fn stencil_attachment( self, stencil_attachment: &'a RenderingAttachmentInfo ) -> Self
sourcepub fn push_next<T: ExtendsRenderingInfo>(self, next: &'a mut T) -> Self
pub fn push_next<T: ExtendsRenderingInfo>(self, next: &'a mut T) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call builder.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
sourcepub fn build(self) -> RenderingInfo
pub fn build(self) -> RenderingInfo
Calling build will discard all the lifetime information. Only call this if
necessary! Builders implement Deref
targeting their corresponding Vulkan struct,
so references to builders can be passed directly to Vulkan functions.
Trait Implementations§
source§impl<'a> Deref for RenderingInfoBuilder<'a>
impl<'a> Deref for RenderingInfoBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for RenderingInfoBuilder<'a>
impl<'a> RefUnwindSafe for RenderingInfoBuilder<'a>
impl<'a> !Send for RenderingInfoBuilder<'a>
impl<'a> !Sync for RenderingInfoBuilder<'a>
impl<'a> Unpin for RenderingInfoBuilder<'a>
impl<'a> UnwindSafe for RenderingInfoBuilder<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more