vulkan-3.26.1: Bindings to the Vulkan graphics API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Vulkan.Core10.Enums.LogicOp

Synopsis

Documentation

newtype LogicOp Source #

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:
ModeOperation
LOGIC_OP_CLEAR0
LOGIC_OP_ANDs ∧ d
LOGIC_OP_AND_REVERSEs ∧ ¬ d
LOGIC_OP_COPYs
LOGIC_OP_AND_INVERTED¬ s ∧ d
LOGIC_OP_NO_OPd
LOGIC_OP_XORs ⊕ d
LOGIC_OP_ORs ∨ d
LOGIC_OP_NOR¬ (s ∨ d)
LOGIC_OP_EQUIVALENT¬ (s ⊕ d)
LOGIC_OP_INVERT¬ d
LOGIC_OP_OR_REVERSEs ∨ ¬ d
LOGIC_OP_COPY_INVERTED¬ s
LOGIC_OP_OR_INVERTED¬ s ∨ d
LOGIC_OP_NAND¬ (s ∧ d)
LOGIC_OP_SETall 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

VK_VERSION_1_0, PipelineColorBlendStateCreateInfo, cmdSetLogicOpEXT

Constructors

LogicOp Int32