Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype LogicOp where
- LogicOp Int32
- pattern LOGIC_OP_CLEAR :: LogicOp
- pattern LOGIC_OP_AND :: LogicOp
- pattern LOGIC_OP_AND_REVERSE :: LogicOp
- pattern LOGIC_OP_COPY :: LogicOp
- pattern LOGIC_OP_AND_INVERTED :: LogicOp
- pattern LOGIC_OP_NO_OP :: LogicOp
- pattern LOGIC_OP_XOR :: LogicOp
- pattern LOGIC_OP_OR :: LogicOp
- pattern LOGIC_OP_NOR :: LogicOp
- pattern LOGIC_OP_EQUIVALENT :: LogicOp
- pattern LOGIC_OP_INVERT :: LogicOp
- pattern LOGIC_OP_OR_REVERSE :: LogicOp
- pattern LOGIC_OP_COPY_INVERTED :: LogicOp
- pattern LOGIC_OP_OR_INVERTED :: LogicOp
- pattern LOGIC_OP_NAND :: LogicOp
- pattern LOGIC_OP_SET :: LogicOp
Documentation
VkLogicOp - Framebuffer logical operations
Description
The logical operations supported by Vulkan are summarized in the following table in which
- ¬ is bitwise invert,
- ∧ is bitwise and,
- ∨ is bitwise or,
- ⊕ is bitwise exclusive or,
- s is the fragment’s Rs0, Gs0, Bs0 or As0 component value for the fragment output corresponding to the color attachment being updated, and
- d is the color attachment’s R, G, B or A component value:
Mode | Operation |
---|---|
LOGIC_OP_CLEAR | 0 |
LOGIC_OP_AND | s ∧ d |
LOGIC_OP_AND_REVERSE | s ∧ ¬ d |
LOGIC_OP_COPY | s |
LOGIC_OP_AND_INVERTED | ¬ s ∧ d |
LOGIC_OP_NO_OP | d |
LOGIC_OP_XOR | s ⊕ d |
LOGIC_OP_OR | s ∨ d |
LOGIC_OP_NOR | ¬ (s ∨ d) |
LOGIC_OP_EQUIVALENT | ¬ (s ⊕ d) |
LOGIC_OP_INVERT | ¬ d |
LOGIC_OP_OR_REVERSE | s ∨ ¬ d |
LOGIC_OP_COPY_INVERTED | ¬ s |
LOGIC_OP_OR_INVERTED | ¬ s ∨ d |
LOGIC_OP_NAND | ¬ (s ∧ d) |
LOGIC_OP_SET | all 1s |
Logical Operations
The result of the logical operation is then written to the color attachment as controlled by the component write mask, described in Blend Operations.
See Also
pattern LOGIC_OP_CLEAR :: LogicOp | |
pattern LOGIC_OP_AND :: LogicOp | |
pattern LOGIC_OP_AND_REVERSE :: LogicOp | |
pattern LOGIC_OP_COPY :: LogicOp | |
pattern LOGIC_OP_AND_INVERTED :: LogicOp | |
pattern LOGIC_OP_NO_OP :: LogicOp | |
pattern LOGIC_OP_XOR :: LogicOp | |
pattern LOGIC_OP_OR :: LogicOp | |
pattern LOGIC_OP_NOR :: LogicOp | |
pattern LOGIC_OP_EQUIVALENT :: LogicOp | |
pattern LOGIC_OP_INVERT :: LogicOp | |
pattern LOGIC_OP_OR_REVERSE :: LogicOp | |
pattern LOGIC_OP_COPY_INVERTED :: LogicOp | |
pattern LOGIC_OP_OR_INVERTED :: LogicOp | |
pattern LOGIC_OP_NAND :: LogicOp | |
pattern LOGIC_OP_SET :: LogicOp |
Instances
Eq LogicOp Source # | |
Ord LogicOp Source # | |
Defined in Vulkan.Core10.Enums.LogicOp | |
Read LogicOp Source # | |
Show LogicOp Source # | |
Storable LogicOp Source # | |
Zero LogicOp Source # | |
Defined in Vulkan.Core10.Enums.LogicOp |