pub struct RenderPassDescriptor<'a> {
pub label: Label<'a>,
pub color_attachments: &'a [Option<RenderPassColorAttachment<'a>>],
pub depth_stencil_attachment: Option<RenderPassDepthStencilAttachment<'a>>,
pub timestamp_writes: Option<RenderPassTimestampWrites<'a>>,
pub occlusion_query_set: Option<&'a QuerySet>,
}
Expand description
Describes the attachments of a render pass.
For use with CommandEncoder::begin_render_pass
.
Corresponds to WebGPU GPURenderPassDescriptor
.
Fields§
§label: Label<'a>
Debug label of the render pass. This will show up in graphics debuggers for easy identification.
color_attachments: &'a [Option<RenderPassColorAttachment<'a>>]
The color attachments of the render pass.
depth_stencil_attachment: Option<RenderPassDepthStencilAttachment<'a>>
The depth and stencil attachment of the render pass, if any.
timestamp_writes: Option<RenderPassTimestampWrites<'a>>
Defines which timestamp values will be written for this pass, and where to write them to.
Requires Features::TIMESTAMP_QUERY
to be enabled.
occlusion_query_set: Option<&'a QuerySet>
Defines where the occlusion query results will be stored for this pass.
Trait Implementations§
Source§impl<'a> Clone for RenderPassDescriptor<'a>
impl<'a> Clone for RenderPassDescriptor<'a>
Source§fn clone(&self) -> RenderPassDescriptor<'a>
fn clone(&self) -> RenderPassDescriptor<'a>
Returns a copy 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 moreSource§impl<'a> Debug for RenderPassDescriptor<'a>
impl<'a> Debug for RenderPassDescriptor<'a>
Source§impl<'a> Default for RenderPassDescriptor<'a>
impl<'a> Default for RenderPassDescriptor<'a>
Source§fn default() -> RenderPassDescriptor<'a>
fn default() -> RenderPassDescriptor<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RenderPassDescriptor<'a>
impl<'a> !RefUnwindSafe for RenderPassDescriptor<'a>
impl<'a> Send for RenderPassDescriptor<'a>
impl<'a> Sync for RenderPassDescriptor<'a>
impl<'a> Unpin for RenderPassDescriptor<'a>
impl<'a> !UnwindSafe for RenderPassDescriptor<'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