Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class KHRSamplerYcbcrConversion

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

The use of Y′CBCR sampler conversion is an area in 3D graphics not used by most Vulkan developers. It is mainly used for processing inputs from video decoders and cameras. The use of the extension assumes basic knowledge of Y′CBCR concepts.

This extension provides the ability to perform specified color space conversions during texture sampling operations for the Y′CBCR color space natively. It also adds a selection of multi-planar formats, image aspect plane, and the ability to bind memory to the planes of an image collectively or separately.

Promotion to Vulkan 1.1

All functionality in this extension is included in core Vulkan 1.1, with the KHR suffix omitted. However, if Vulkan 1.1 is supported and this extension is not, the samplerYcbcrConversion capability is optional. The original type, enum and command names are still available as aliases of the core functionality.

VK_KHR_sampler_ycbcr_conversion
Name String
VK_KHR_sampler_ycbcr_conversion
Extension Type
Device extension
Registered Extension Number
157
Revision
14
Extension and Version Dependencies
VK_KHR_maintenance1 and VK_KHR_bind_memory2 and VK_KHR_get_memory_requirements2 and VK_KHR_get_physical_device_properties2
Deprecation state
Contact
Other Extension Metadata
Last Modified Date
2017-08-11
IP Status
No known IP claims.
Interactions and External Dependencies
  • Promoted to Vulkan 1.1 Core
Contributors
  • Andrew Garrard, Samsung Electronics
  • Tobias Hector, Imagination Technologies
  • James Jones, NVIDIA
  • Daniel Koch, NVIDIA
  • Daniel Rakos, AMD
  • Romain Guy, Google
  • Jesse Hall, Google
  • Tom Cooksey, ARM Ltd
  • Jeff Leger, Qualcomm Technologies, Inc
  • Jan-Harald Fredriksen, ARM Ltd
  • Jan Outters, Samsung Electronics
  • Alon Or-bach, Samsung Electronics
  • Michael Worcester, Imagination Technologies
  • Jeff Bolz, NVIDIA
  • Tony Zlatinski, NVIDIA
  • Matthew Netsch, Qualcomm Technologies, Inc

Field Summary

Modifier and TypeField and Description
public static final int
VK_CHROMA_LOCATION_COSITED_EVEN_KHR

Extends VkChromaLocation.

public static final int
VK_CHROMA_LOCATION_MIDPOINT_KHR

Extends VkChromaLocation.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT_KHR

Extends VkFormatFeatureFlagBits.

public static final int
VK_FORMAT_FEATURE_DISJOINT_BIT_KHR

Extends VkFormatFeatureFlagBits.

public static final int
VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT_KHR

Extends VkFormatFeatureFlagBits.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
VK_IMAGE_ASPECT_PLANE_0_BIT_KHR

Extends VkImageAspectFlagBits.

public static final int
VK_IMAGE_ASPECT_PLANE_1_BIT_KHR

Extends VkImageAspectFlagBits.

public static final int
VK_IMAGE_ASPECT_PLANE_2_BIT_KHR

Extends VkImageAspectFlagBits.

public static final int
VK_IMAGE_CREATE_DISJOINT_BIT_KHR

Extends VkImageCreateFlagBits.

public static final String
public static final int
VK_KHR_SAMPLER_YCBCR_CONVERSION_SPEC_VERSION

The extension specification version.

public static final int
public static final int
VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY_KHR

Extends VkSamplerYcbcrModelConversion.

public static final int
VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020_KHR

Extends VkSamplerYcbcrModelConversion.

public static final int
VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601_KHR

Extends VkSamplerYcbcrModelConversion.

public static final int
VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709_KHR

Extends VkSamplerYcbcrModelConversion.

public static final int
VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY_KHR

Extends VkSamplerYcbcrModelConversion.

public static final int
VK_SAMPLER_YCBCR_RANGE_ITU_FULL_KHR

Extends VkSamplerYcbcrRange.

public static final int
VK_SAMPLER_YCBCR_RANGE_ITU_NARROW_KHR

Extends VkSamplerYcbcrRange.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nvkCreateSamplerYcbcrConversionKHR(VkDevice device, long pCreateInfo, long pAllocator, long pYcbcrConversion)

Unsafe version of: CreateSamplerYcbcrConversionKHR

public static void
nvkDestroySamplerYcbcrConversionKHR(VkDevice device, long ycbcrConversion, long pAllocator)

Unsafe version of: DestroySamplerYcbcrConversionKHR

public static int
vkCreateSamplerYcbcrConversionKHR(VkDevice
the logical device that creates the sampler Y′CBCR conversion.
device
,
VkSamplerYcbcrConversionCreateInfo
a pointer to a VkSamplerYcbcrConversionCreateInfo structure specifying the requested sampler Y′CBCR conversion.
pCreateInfo
,
VkAllocationCallbacks
controls host memory allocation as described in the Memory Allocation chapter.
pAllocator
,
LongBuffer
a pointer to a VkSamplerYcbcrConversion handle in which the resulting sampler Y′CBCR conversion is returned.
pYcbcrConversion
)

See CreateSamplerYcbcrConversion.

public static int
public static void
vkDestroySamplerYcbcrConversionKHR(VkDevice
the logical device that destroys the Y′CBCR conversion.
device
,
long
the conversion to destroy.
ycbcrConversion
,
VkAllocationCallbacks
controls host memory allocation as described in the Memory Allocation chapter.
pAllocator
)

See DestroySamplerYcbcrConversion.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait