HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulevulkan-3.27GHC2021

Vulkan.Core10.Enums.LogicOp

  • 1 type
  • Packagevulkan-3.27
  • Exports17
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceLogicOp.hs
newtypenewtype LogicOp
#

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:

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

Instances6Eq, Ord, Read, Show, Storable, Zero
  • Eq LogicOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.LogicOp
  • Ord LogicOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.LogicOp
  • Read LogicOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.LogicOp
  • Show LogicOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.LogicOp
  • Storable LogicOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.LogicOp
  • Zero LogicOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.LogicOp