[][src]Struct wgpu::RenderPassDescriptorBase

pub struct RenderPassDescriptorBase<'a, C, D> where
    C: Clone
{ pub color_attachments: Cow<'a, [C]>, pub depth_stencil_attachment: Option<D>, }

Describes the attachments of a render pass.

Fields

color_attachments: Cow<'a, [C]>

The color attachments of the render pass.

depth_stencil_attachment: Option<D>

The depth and stencil attachment of the render pass, if any.

Implementations

impl<'a, C, D> RenderPassDescriptor<'a, C, D> where
    C: Clone
[src]

pub fn new(
    color_attachments: impl IntoCow<'a, [C]>
) -> RenderPassDescriptor<'a, C, D>
[src]

pub fn depth_stencil_attachment(
    &mut self,
    attachment: D
) -> &mut RenderPassDescriptor<'a, C, D>
[src]

Trait Implementations

impl<'a, C, D> Clone for RenderPassDescriptor<'a, C, D> where
    C: Clone,
    D: Clone
[src]

impl<'a, C, D> Debug for RenderPassDescriptor<'a, C, D> where
    C: Clone + Debug,
    D: Debug
[src]

impl<'a, C, D> Default for RenderPassDescriptor<'a, C, D> where
    C: Clone + Default,
    D: Default
[src]

impl<'a, C, D> PartialEq<RenderPassDescriptor<'a, C, D>> for RenderPassDescriptor<'a, C, D> where
    C: Clone + PartialEq<C>,
    D: PartialEq<D>, 
[src]

Auto Trait Implementations

impl<'a, C, D> RefUnwindSafe for RenderPassDescriptor<'a, C, D> where
    C: RefUnwindSafe,
    D: RefUnwindSafe

impl<'a, C, D> Send for RenderPassDescriptor<'a, C, D> where
    C: Send + Sync,
    D: Send

impl<'a, C, D> Sync for RenderPassDescriptor<'a, C, D> where
    C: Sync,
    D: Sync

impl<'a, C, D> Unpin for RenderPassDescriptor<'a, C, D> where
    C: Unpin,
    D: Unpin

impl<'a, C, D> UnwindSafe for RenderPassDescriptor<'a, C, D> where
    C: RefUnwindSafe + UnwindSafe,
    D: UnwindSafe

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> 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.