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
sourceimpl<'a> Clone for RenderPassDescriptor<'a>
impl<'a> Clone for RenderPassDescriptor<'a>
sourcefn clone(&self) -> RenderPassDescriptor<'a>
fn clone(&self) -> RenderPassDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for RenderPassDescriptor<'a>
impl<'a> Debug for RenderPassDescriptor<'a>
sourceimpl<'a> Default for RenderPassDescriptor<'a>
impl<'a> Default for RenderPassDescriptor<'a>
sourcefn default() -> RenderPassDescriptor<'a>
fn default() -> RenderPassDescriptor<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> PartialEq<RenderPassDescriptor<'a>> for RenderPassDescriptor<'a>
impl<'a> PartialEq<RenderPassDescriptor<'a>> for RenderPassDescriptor<'a>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &RenderPassDescriptor<'a>) -> bool
fn ne(&self, other: &RenderPassDescriptor<'a>) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more