pub struct RenderPassDesc<'a, D: Device> {
pub label: &'static str,
pub colors: &'a [ColorAttachment<'a, D>],
pub depth: Option<DepthAttachment<'a, D>>,
pub timestamps: Option<TimestampWrites<'a, D>>,
}Expand description
Everything needed to begin a render pass.
Fields§
§label: &'static strDebug label.
colors: &'a [ColorAttachment<'a, D>]Color attachments in order.
depth: Option<DepthAttachment<'a, D>>Optional depth attachment.
timestamps: Option<TimestampWrites<'a, D>>Optional timestamps written at the actual pass boundaries.
Trait Implementations§
Auto Trait Implementations§
impl<'a, D> Freeze for RenderPassDesc<'a, D>where
&'a [ColorAttachment<'a, D>]: Freeze,
Option<DepthAttachment<'a, D>>: Freeze,
Option<TimestampWrites<'a, D>>: Freeze,
impl<'a, D> RefUnwindSafe for RenderPassDesc<'a, D>where
&'a [ColorAttachment<'a, D>]: RefUnwindSafe,
Option<DepthAttachment<'a, D>>: RefUnwindSafe,
Option<TimestampWrites<'a, D>>: RefUnwindSafe,
impl<'a, D> Send for RenderPassDesc<'a, D>where
&'a [ColorAttachment<'a, D>]: Send,
Option<DepthAttachment<'a, D>>: Send,
Option<TimestampWrites<'a, D>>: Send,
impl<'a, D> Sync for RenderPassDesc<'a, D>where
&'a [ColorAttachment<'a, D>]: Sync,
Option<DepthAttachment<'a, D>>: Sync,
Option<TimestampWrites<'a, D>>: Sync,
impl<'a, D> Unpin for RenderPassDesc<'a, D>where
&'a [ColorAttachment<'a, D>]: Unpin,
Option<DepthAttachment<'a, D>>: Unpin,
Option<TimestampWrites<'a, D>>: Unpin,
impl<'a, D> UnsafeUnpin for RenderPassDesc<'a, D>where
&'a [ColorAttachment<'a, D>]: UnsafeUnpin,
Option<DepthAttachment<'a, D>>: UnsafeUnpin,
Option<TimestampWrites<'a, D>>: UnsafeUnpin,
impl<'a, D> UnwindSafe for RenderPassDesc<'a, D>where
&'a [ColorAttachment<'a, D>]: UnwindSafe,
Option<DepthAttachment<'a, D>>: UnwindSafe,
Option<TimestampWrites<'a, D>>: UnwindSafe,
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