Struct ash::vk::RenderingInfoKHRBuilder
source · [−]#[repr(transparent)]pub struct RenderingInfoKHRBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> RenderingInfoKHRBuilder<'a>
impl<'a> RenderingInfoKHRBuilder<'a>
pub fn flags(self, flags: RenderingFlagsKHR) -> 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 [RenderingAttachmentInfoKHR]
) -> Self
pub fn depth_attachment(
self,
depth_attachment: &'a RenderingAttachmentInfoKHR
) -> Self
pub fn stencil_attachment(
self,
stencil_attachment: &'a RenderingAttachmentInfoKHR
) -> Self
sourcepub fn push_next<T: ExtendsRenderingInfoKHR>(self, next: &'a mut T) -> Self
pub fn push_next<T: ExtendsRenderingInfoKHR>(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) -> RenderingInfoKHR
pub fn build(self) -> RenderingInfoKHR
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
sourceimpl<'a> Deref for RenderingInfoKHRBuilder<'a>
impl<'a> Deref for RenderingInfoKHRBuilder<'a>
type Target = RenderingInfoKHR
type Target = RenderingInfoKHR
The resulting type after dereferencing.
Auto Trait Implementations
impl<'a> RefUnwindSafe for RenderingInfoKHRBuilder<'a>
impl<'a> !Send for RenderingInfoKHRBuilder<'a>
impl<'a> !Sync for RenderingInfoKHRBuilder<'a>
impl<'a> Unpin for RenderingInfoKHRBuilder<'a>
impl<'a> UnwindSafe for RenderingInfoKHRBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more