VkFormatFeatureFlagBits2KHR 64bits format feature flag type to extend the existing VkFormatFeatureFlagBits which is limited to 31 flags. At the time of this writing 29 bits of VkFormatFeatureFlagBits are already used.
Because VkFormatProperties2 is already defined to extend the Vulkan 1.0 GetPhysicalDeviceFormatProperties entry point, this extension defines a new VkFormatProperties3KHR to extend the VkFormatProperties.
On top of replicating all the bits from VkFormatFeatureFlagBits, VkFormatFeatureFlagBits2KHR adds the following bits :
FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT_KHR and FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR indicate that an implementation supports respectively reading and writing a given VkFormat through storage operations without specifying the format in the shader.FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT_KHR indicates that an implementation supports depth comparison performed by OpImage*Dref* instructions on a given VkFormat. Previously the result of executing a OpImage*Dref* instruction on an image view, where the format was not one of the depth/stencil formats with a depth component, was undefined. This bit clarifies on which formats such instructions can be used.Prior to version 2 of this extension, implementations exposing the shaderStorageImageReadWithoutFormat and shaderStorageImageWriteWithoutFormat features may not report FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT_KHR and FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR in VkFormatProperties3KHR::bufferFeatures. Despite this, buffer reads/writes are supported as intended by the original features.
Functionality in this extension is included in core Vulkan 1.3, with the KHR suffix omitted. The original type, enum and command names are still available as aliases of the core functionality.
VK_KHR_format_feature_flags2VK_KHR_get_physical_device_properties2| Modifier and Type | Field and Description |
|---|---|
| public static final long | VK_FORMAT_FEATURE_2_BLIT_DST_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_BLIT_SRC_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BLEND_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_COSITED_CHROMA_SAMPLES_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_DEPTH_STENCIL_ATTACHMENT_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_DISJOINT_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_MIDPOINT_CHROMA_SAMPLES_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_LINEAR_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_MINMAX_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_STORAGE_IMAGE_ATOMIC_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_STORAGE_IMAGE_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_ATOMIC_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_TRANSFER_DST_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT_KHR
Extends |
| public static final long | VK_FORMAT_FEATURE_2_VERTEX_BUFFER_BIT_KHR
Extends |
| public static final String | VK_KHR_FORMAT_FEATURE_FLAGS_2_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_FORMAT_FEATURE_FLAGS_2_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| private |