Enum vulkano::pipeline::blend::LogicOp [] [src]

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

Which logical operation to apply to the output values.

The operation is applied individually for each channel (red, green, blue and alpha).

Only relevant for integer or unsigned attachments.

Also note that some implementations don't support logic operations.

Variants

Clear

Returns 0.

And

Returns src & dest.

AndReverse

Returns src & !dest.

Copy

Returns src.

AndInverted

Returns !src & dest.

Noop

Returns dest.

Xor

Returns src ^ dest.

Or

Returns src | dest.

Nor

Returns !(src | dest).

Equivalent

Returns !(src ^ dest).

Invert

Returns !dest.

OrReverse

Returns `src | !dest.

CopyInverted

Returns !src.

OrInverted

Returns !src | dest.

Nand

Returns !(src & dest).

Set

Returns !0 (all bits set to 1).

Trait Implementations

impl Eq for LogicOp
[src]

impl PartialEq for LogicOp
[src]

fn eq(&self, __arg_0: &LogicOp) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Clone for LogicOp
[src]

fn clone(&self) -> LogicOp

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for LogicOp
[src]

impl Debug for LogicOp
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for LogicOp
[src]

fn default() -> LogicOp

Returns the "default value" for a type. Read more