Struct wgpu_core::command::RenderPassDescriptor
source · pub struct RenderPassDescriptor<'a> {
pub label: Label<'a>,
pub color_attachments: Cow<'a, [Option<RenderPassColorAttachment>]>,
pub depth_stencil_attachment: Option<&'a RenderPassDepthStencilAttachment>,
}
Expand description
Describes the attachments of a render pass.
Fields§
§label: Label<'a>
§color_attachments: Cow<'a, [Option<RenderPassColorAttachment>]>
The color attachments of the render pass.
depth_stencil_attachment: Option<&'a RenderPassDepthStencilAttachment>
The depth and stencil attachment of the render pass, if any.
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
source§impl<'a> PartialEq<RenderPassDescriptor<'a>> for RenderPassDescriptor<'a>
impl<'a> PartialEq<RenderPassDescriptor<'a>> for RenderPassDescriptor<'a>
source§fn eq(&self, other: &RenderPassDescriptor<'a>) -> bool
fn eq(&self, other: &RenderPassDescriptor<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for RenderPassDescriptor<'a>
Auto Trait Implementations§
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