Enum sierra::LogicOp[][src]

pub enum LogicOp {
    Clear,
    And,
    AndReverse,
    Copy,
    AndInverted,
    NoOp,
    Xor,
    Or,
    Nor,
    Equivalent,
    Invert,
    OrReverse,
    CopyInverted,
    OrInverted,
    Nand,
    Set,
}

Logical operation to be applied between color value from fragment shader’s color output and value stored in attachment.

For each operation comment contains an equivalent Rust expression where s is value from fragment shader’s color output and d is value stored in attachment.

Variants

Clear

0.

And

s & d

AndReverse

s & !d

Copy

s

AndInverted

!s & d

NoOp

d

Xor

s ^ d

Or

s | d

Nor

!(s | d)

Equivalent

!(s ^ d)

Invert

!d

OrReverse

s | !d

CopyInverted

!s

OrInverted

!s | d

Nand

!(s & d)

Set

!0

Trait Implementations

impl Clone for LogicOp[src]

impl Copy for LogicOp[src]

impl Debug for LogicOp[src]

impl Eq for LogicOp[src]

impl Hash for LogicOp[src]

impl PartialEq<LogicOp> for LogicOp[src]

impl StructuralEq for LogicOp[src]

impl StructuralPartialEq for LogicOp[src]

Auto Trait Implementations

impl RefUnwindSafe for LogicOp

impl Send for LogicOp

impl Sync for LogicOp

impl Unpin for LogicOp

impl UnwindSafe for LogicOp

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.