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.Core11.Enums.SamplerYcbcrModelConversion

  • 1 type
  • Packagevulkan-3.27
  • Exports6
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceSamplerYcbcrModelConversion.hs
newtypenewtype SamplerYcbcrModelConversion
#

VkSamplerYcbcrModelConversion - Color model component of a color space

Description

In the VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_* color models, for the input to the sampler Y′CBCR range expansion and model conversion:

  • the Y (Y′ luma) component corresponds to the G component of an RGB image.

  • the CB (CB or “U” blue color difference) component corresponds to the B component of an RGB image.

  • the CR (CR or “V” red color difference) component corresponds to the R component of an RGB image.

  • the alpha component, if present, is not modified by color model conversion.

These rules reflect the mapping of components after the component swizzle operation (controlled by SamplerYcbcrConversionCreateInfo::components).

For example, an “YUVA” 32-bit format comprising four 8-bit components can be implemented as FORMAT_R8G8B8A8_UNORM with a component mapping:

See Also

VK_KHR_sampler_ycbcr_conversion, VK_VERSION_1_1, AndroidHardwareBufferFormatProperties2ANDROID, AndroidHardwareBufferFormatPropertiesANDROID, BufferCollectionPropertiesFUCHSIA, VkNativeBufferFormatPropertiesOHOS, SamplerYcbcrConversionCreateInfo, ScreenBufferFormatPropertiesQNX

Instances6Eq, Ord, Read, Show, Storable, Zero