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

Vulkan.Core11.Enums.SamplerYcbcrModelConversion

Synopsis

Documentation

newtype SamplerYcbcrModelConversion Source #

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).

Note

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_VERSION_1_1, AndroidHardwareBufferFormatProperties2ANDROID, AndroidHardwareBufferFormatPropertiesANDROID, BufferCollectionPropertiesFUCHSIA, SamplerYcbcrConversionCreateInfo, ScreenBufferFormatPropertiesQNX

Instances

Instances details
Storable SamplerYcbcrModelConversion Source # 
Instance details

Defined in Vulkan.Core11.Enums.SamplerYcbcrModelConversion

Read SamplerYcbcrModelConversion Source # 
Instance details

Defined in Vulkan.Core11.Enums.SamplerYcbcrModelConversion

Show SamplerYcbcrModelConversion Source # 
Instance details

Defined in Vulkan.Core11.Enums.SamplerYcbcrModelConversion

Eq SamplerYcbcrModelConversion Source # 
Instance details

Defined in Vulkan.Core11.Enums.SamplerYcbcrModelConversion

Ord SamplerYcbcrModelConversion Source # 
Instance details

Defined in Vulkan.Core11.Enums.SamplerYcbcrModelConversion

Zero SamplerYcbcrModelConversion Source # 
Instance details

Defined in Vulkan.Core11.Enums.SamplerYcbcrModelConversion