VK_NV_fragment_shader_barycentric extension, and adds support for the following SPIR-V extension in Vulkan:
The extension provides access to three additional fragment shader variable decorations in SPIR-V:
PerVertexKHR, which indicates that a fragment shader input will not have interpolated values, but instead must be accessed with an extra array index that identifies one of the vertices of the primitive producing the fragmentBaryCoordKHR, which indicates that the variable is a three-component floating-point vector holding barycentric weights for the fragment produced using perspective interpolationBaryCoordNoPerspKHR, which indicates that the variable is a three-component floating-point vector holding barycentric weights for the fragment produced using linear interpolationWhen using GLSL source-based shader languages, the following variables from GL_EXT_fragment_shader_barycentric map to these SPIR-V built-in decorations:
in vec3 gl_BaryCoordEXT; → BaryCoordKHRin vec3 gl_BaryCoordNoPerspEXT; → BaryCoordNoPerspKHRGLSL variables declared using the pervertexEXT GLSL qualifier are expected to be decorated with PerVertexKHR in SPIR-V.
VK_KHR_fragment_shader_barycentricVK_KHR_get_physical_device_properties2SPV_KHR_fragment_shader_barycentricGL_EXT_fragment_shader_barycentric| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR
Extends |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME The extension name. | |
| VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR Extends Enum values: | |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR Extends Enum values: | |
| KHRFragmentShaderBarycentric | back to summary |
|---|---|
| private KHRFragmentShaderBarycentric() | |