pub struct RenderPassDesc {
pub color_attachments: Vec<ColorAttachmentDesc>,
pub depth_attachment: Option<DepthAttachmentDesc>,
pub name: String,
}Expand description
Description of a full render pass.
Fields§
§color_attachments: Vec<ColorAttachmentDesc>Color attachments.
depth_attachment: Option<DepthAttachmentDesc>Optional depth/stencil attachment.
name: StringName of this render pass (for debugging).
Implementations§
Source§impl RenderPassDesc
impl RenderPassDesc
Sourcepub fn new_simple_color() -> Self
pub fn new_simple_color() -> Self
Create a simple render pass with one RGBA8 color attachment, no depth.
Sourcepub fn new_with_depth() -> Self
pub fn new_with_depth() -> Self
Create a render pass with an HDR color attachment and depth buffer.
Sourcepub fn total_attachment_count(&self) -> usize
pub fn total_attachment_count(&self) -> usize
Number of total attachments (color + optional depth).
Trait Implementations§
Source§impl Clone for RenderPassDesc
impl Clone for RenderPassDesc
Source§fn clone(&self) -> RenderPassDesc
fn clone(&self) -> RenderPassDesc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RenderPassDesc
impl RefUnwindSafe for RenderPassDesc
impl Send for RenderPassDesc
impl Sync for RenderPassDesc
impl Unpin for RenderPassDesc
impl UnsafeUnpin for RenderPassDesc
impl UnwindSafe for RenderPassDesc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more