Enum vulkano::pipeline::blend::LogicOp
[−]
[src]
#[repr(u32)]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 source & destination
.
AndReverse
Returns source & !destination
.
Copy
Returns source
.
AndInverted
Returns !source & destination
.
Noop
Returns destination
.
Xor
Returns source ^ destination
.
Or
Returns source | destination
.
Nor
Returns !(source | destination)
.
Equivalent
Returns !(source ^ destination)
.
Invert
Returns !destination
.
OrReverse
Returns `source | !destination.
CopyInverted
Returns !source
.
OrInverted
Returns !source | destination
.
Nand
Returns !(source & destination)
.
Set
Returns !0
(all bits set to 1).
Trait Implementations
impl Debug for LogicOp
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for LogicOp
[src]
impl Clone for LogicOp
[src]
fn clone(&self) -> LogicOp
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for LogicOp
[src]
fn eq(&self, __arg_0: &LogicOp) -> bool
[src]
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[src]
This method tests for !=
.