[][src]Enum gfx_hal::command::AttachmentClear

pub enum AttachmentClear {
    Color {
        index: usize,
        value: ClearColor,
    },
    DepthStencil {
        depth: Option<DepthValue>,
        stencil: Option<StencilValue>,
    },
}

Attachment clear description for the current subpass.

Variants

Color

Clear color attachment.

Fields of Color

index: usize

Index inside the SubpassDesc::colors array.

value: ClearColor

Value to clear with.

DepthStencil

Clear depth-stencil attachment.

Fields of DepthStencil

depth: Option<DepthValue>

Depth value to clear with.

stencil: Option<StencilValue>

Stencil value to clear with.

Trait Implementations

impl Clone for AttachmentClear[src]

impl Copy for AttachmentClear[src]

impl Debug for AttachmentClear[src]

Auto Trait Implementations

impl RefUnwindSafe for AttachmentClear

impl Send for AttachmentClear

impl Sync for AttachmentClear

impl Unpin for AttachmentClear

impl UnwindSafe for AttachmentClear

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.