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]
impl Debug for LogicOp
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for LogicOp
[src]
impl Copy for LogicOp
impl Clone for LogicOp
[src]
impl Clone for LogicOp
fn clone(&self) -> LogicOp
[src]
fn clone(&self) -> LogicOp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for LogicOp
[src]
impl PartialEq for LogicOp
fn eq(&self, other: &LogicOp) -> bool
[src]
fn eq(&self, other: &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[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for LogicOp
[src]
impl Eq for LogicOp
impl Default for LogicOp
[src]
impl Default for LogicOp