Enum sierra::AttachmentLoadOp[][src]

pub enum AttachmentLoadOp {
    Load,
    Clear,
    DontCare,
}

Specifies how render pass treats attachment content at the beginning.

Variants

Load

Render pass will load this attachment content before first subpass that access this attachment starts.

Clear

Render pass will clear this attachment content before first subpass that access this attachment starts. Value to which attachment should be cleared must be provided in Encoder::begin_render_pass call.

DontCare

Render pass will not attempt to load attachment content or clear it - basically no-op. Attachment content visible to read operations inside render pass is undefined before it is written.

This is fastest variant suitable when old content can be discarded and whole attachment is going to be written by operations in render pass, or only written parts are later read.

Trait Implementations

impl Clone for AttachmentLoadOp[src]

impl Copy for AttachmentLoadOp[src]

impl Debug for AttachmentLoadOp[src]

impl Eq for AttachmentLoadOp[src]

impl Hash for AttachmentLoadOp[src]

impl PartialEq<AttachmentLoadOp> for AttachmentLoadOp[src]

impl StructuralEq for AttachmentLoadOp[src]

impl StructuralPartialEq for AttachmentLoadOp[src]

Auto Trait Implementations

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