[][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 Copy for AttachmentClear[src]

impl Clone for AttachmentClear[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<AttachmentClear> for AttachmentClear[src]

impl PartialEq<AttachmentClear> for AttachmentClear[src]

impl Debug for AttachmentClear[src]

impl Serialize for AttachmentClear[src]

impl<'de> Deserialize<'de> for AttachmentClear[src]

Auto Trait Implementations

impl Unpin for AttachmentClear

impl Sync for AttachmentClear

impl Send for AttachmentClear

impl UnwindSafe for AttachmentClear

impl RefUnwindSafe for AttachmentClear

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]