Struct wgpu::RenderPassDescriptor[][src]

pub struct RenderPassDescriptor<'a, 'b> {
    pub label: Label<'a>,
    pub color_attachments: &'b [RenderPassColorAttachment<'a>],
    pub depth_stencil_attachment: Option<RenderPassDepthStencilAttachment<'a>>,
}

Describes the attachments of a render pass.

Note: separate lifetimes are needed because the texture views have to live as long as the pass is recorded, while everything else doesn’t.

Fields

label: Label<'a>

Debug label of the render pass. This will show up in graphics debuggers for easy identification.

color_attachments: &'b [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.

Trait Implementations

impl<'a, 'b> Clone for RenderPassDescriptor<'a, 'b>[src]

impl<'a, 'b> Debug for RenderPassDescriptor<'a, 'b>[src]

impl<'a, 'b> Default for RenderPassDescriptor<'a, 'b>[src]

Auto Trait Implementations

impl<'a, 'b> !RefUnwindSafe for RenderPassDescriptor<'a, 'b>

impl<'a, 'b> Send for RenderPassDescriptor<'a, 'b>

impl<'a, 'b> Sync for RenderPassDescriptor<'a, 'b>

impl<'a, 'b> Unpin for RenderPassDescriptor<'a, 'b> where
    'a: 'b, 

impl<'a, 'b> !UnwindSafe for RenderPassDescriptor<'a, 'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T