pub struct RenderPassDesc<'a> {
pub label: Option<&'a str>,
pub color_attachments: &'a [ColorAttachment],
pub depth_stencil_attachment: Option<DepthStencilAttachment>,
pub render_area: Rect2d,
pub timestamp_writes: Option<PassTimestampWrites>,
}Expand description
A render pass, in dynamic-rendering form: attachments are named inline and
there is no RenderPass or Framebuffer object to keep compatible.
Fields§
§label: Option<&'a str>Pass name. Shows up in RenderDoc/PIX capture trees, in the render graph’s text dump, and in the null backend’s recorded stream — which is what makes “this frame emitted these passes in this order” assertable.
color_attachments: &'a [ColorAttachment]Colour attachments, in shader output order.
depth_stencil_attachment: Option<DepthStencilAttachment>Depth/stencil attachment, if any.
render_area: Rect2dRegion rendered. Usually the full attachment size.
timestamp_writes: Option<PassTimestampWrites>Timestamps bracketing this pass, if it is being timed. See
PassTimestampWrites.
Trait Implementations§
Source§impl<'a> Clone for RenderPassDesc<'a>
impl<'a> Clone for RenderPassDesc<'a>
impl<'a> Copy for RenderPassDesc<'a>
Source§impl<'a> Debug for RenderPassDesc<'a>
impl<'a> Debug for RenderPassDesc<'a>
Source§impl<'a> PartialEq for RenderPassDesc<'a>
impl<'a> PartialEq for RenderPassDesc<'a>
impl<'a> StructuralPartialEq for RenderPassDesc<'a>
Auto Trait Implementations§
impl<'a> Freeze for RenderPassDesc<'a>
impl<'a> RefUnwindSafe for RenderPassDesc<'a>
impl<'a> Send for RenderPassDesc<'a>
impl<'a> Sync for RenderPassDesc<'a>
impl<'a> Unpin for RenderPassDesc<'a>
impl<'a> UnsafeUnpin for RenderPassDesc<'a>
impl<'a> UnwindSafe for RenderPassDesc<'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