Function TRAP::Graphics::API::VulkanInits::SamplerYcbcrConversionCreateInfo#
Function Documentation#
-
constexpr VkSamplerYcbcrConversionCreateInfo TRAP::Graphics::API::VulkanInits::SamplerYcbcrConversionCreateInfo(VkFormat format, VkSamplerYcbcrModelConversion ycbcrModel, VkSamplerYcbcrRange ycbcrRange, VkChromaLocation xChromaOffset, VkChromaLocation yChromaOffset, VkFilter chromaFilter, bool forceExplicitReconstruction)#
Create a Vulkan sampler Ycbcr conversion create info.
- Parameters:
format – Vulkan format of the image from which color information will be retrieved.
ycbcrModel – Describes the color matrix for conversion between color models.
ycbcrRange – Describes whether the encoded values have headroom and foot room, or whether the encoding uses the full numerical range.
xChromaOffset – Describes the sample locaton associated with downsampled chroma components in the x dimension. xChromaOffset has no effect for formats in which chroma components are not downsampled horizontally.
yChromaOffset – Describes the sample location associated with downsampled chroma components in the y dimension. yChromaOffset has no effect for formats in which the chroma components are not downsampled vertically.
chromaFilter – Filter to use for chroma reconstruction
forceExplicitReconstruction – Can be used to ensure that reconstruction is done explicitly, if supported. Note: Settings this to true may have a performance penalty.
- Returns:
VkSamplerYcbcrConversionCreateInfo.