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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulevulkan-3.27GHC2021

Vulkan.Core10.Enums.ComponentSwizzle

  • 1 type
  • Packagevulkan-3.27
  • Exports8
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceComponentSwizzle.hs
newtypenewtype ComponentSwizzle
#

VkComponentSwizzle - Specify how a component is swizzled

Description

  • COMPONENT_SWIZZLE_ZERO specifies that the component is set to zero.

  • COMPONENT_SWIZZLE_ONE specifies that the component is set to either 1 or 1.0, depending on whether the type of the image view format is integer or floating-point respectively, as determined by the Format Definition section for each Format.

  • COMPONENT_SWIZZLE_R specifies that the component is set to the value of the R component of the image.

  • COMPONENT_SWIZZLE_G specifies that the component is set to the value of the G component of the image.

  • COMPONENT_SWIZZLE_B specifies that the component is set to the value of the B component of the image.

  • COMPONENT_SWIZZLE_A specifies that the component is set to the value of the A component of the image.

Setting the identity swizzle on a component is equivalent to setting the identity mapping on that component. That is:

Component

Identity Mapping

components.r

COMPONENT_SWIZZLE_R

components.g

COMPONENT_SWIZZLE_G

components.b

COMPONENT_SWIZZLE_B

components.a

COMPONENT_SWIZZLE_A

Component Mappings Equivalent To COMPONENT_SWIZZLE_IDENTITY

See Also

VK_VERSION_1_0, ComponentMapping

Instances6Eq, Ord, Read, Show, Storable, Zero