VK_KHR_shader_float16_int8 extension allows use of 16-bit floating-point types and 8-bit integer types in shaders for arithmetic operations.
It introduces two new optional features shaderFloat16 and shaderInt8 which directly map to the Float16 and the Int8 SPIR-V capabilities. The VK_KHR_shader_float16_int8 extension also specifies precision requirements for half-precision floating-point SPIR-V operations. This extension does not enable use of 8-bit integer types or 16-bit floating-point types in any shader input and output interfaces and therefore does not supersede the VK_KHR_8bit_storage or VK_KHR_16bit_storage extensions.
All functionality in this extension is included in core Vulkan 1.2, with the KHR suffix omitted. However, if Vulkan 1.2 is supported and this extension is not, both the shaderFloat16 and shaderInt8 capabilities are optional. The original type, enum and command names are still available as aliases of the core functionality.
VK_KHR_shader_float16_int8VK_KHR_get_physical_device_properties2VK_KHR_8bit_storageVK_KHR_16bit_storageVK_KHR_shader_float_controlsGL_EXT_shader_explicit_arithmetic_types| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_SHADER_FLOAT16_INT8_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR
Extends |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME The extension name. | |
| VK_KHR_SHADER_FLOAT16_INT8_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_KHR_SHADER_FLOAT16_INT8_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR Extends Enum values: | |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES_KHR Extends Enum values: | |
| KHRShaderFloat16Int8 | back to summary |
|---|---|
| private KHRShaderFloat16Int8() | |