pub enum LogicOp {
Show 16 variants
Clear,
And,
AndReverse,
Copy,
AndInverted,
NoOp,
Xor,
Or,
Nor,
Equivalent,
Invert,
OrReverse,
CopyInverted,
OrInverted,
Nand,
Set,
}
Expand description
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