pub struct RenderPassConfig {
pub color_attachments: Vec<AttachmentConfig>,
pub depth_attachment: Option<AttachmentConfig>,
pub label: Option<String>,
}Expand description
Describes all attachments used in a single render pass.
Fields§
§color_attachments: Vec<AttachmentConfig>Color attachments (up to 8 on most hardware).
depth_attachment: Option<AttachmentConfig>Optional depth/stencil attachment.
label: Option<String>Debug label for the render pass.
Implementations§
Source§impl RenderPassConfig
impl RenderPassConfig
Sourcepub fn attachment_count(&self) -> usize
pub fn attachment_count(&self) -> usize
Returns the total number of attachments (color + optional depth).
Sourcepub fn has_depth_attachment(&self) -> bool
pub fn has_depth_attachment(&self) -> bool
Returns true when a depth attachment is present.
Sourcepub fn has_uniform_color_format(&self) -> bool
pub fn has_uniform_color_format(&self) -> bool
Returns true when all color attachments use the same format.
Trait Implementations§
Source§impl Clone for RenderPassConfig
impl Clone for RenderPassConfig
Source§fn clone(&self) -> RenderPassConfig
fn clone(&self) -> RenderPassConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 RenderPassConfig
impl RefUnwindSafe for RenderPassConfig
impl Send for RenderPassConfig
impl Sync for RenderPassConfig
impl Unpin for RenderPassConfig
impl UnsafeUnpin for RenderPassConfig
impl UnwindSafe for RenderPassConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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