public final class NVFragmentShaderBarycentric
extends java.lang.Object
The extension provides access to three additional fragment shader variable decorations in SPIR-V:
PerVertexNV, 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 fragmentBaryCoordNV, which indicates that the variable is a three-component floating-point vector holding barycentric weights for the fragment produced using perspective interpolationBaryCoordNoPerspNV, 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_NV_fragment_shader_barycentric maps to these SPIR-V built-in decorations:
in vec3 gl_BaryCoordNV; → BaryCoordNVin vec3 gl_BaryCoordNoPerspNV; → BaryCoordNoPerspNVGLSL variables declared using the __pervertexNV GLSL qualifier are expected to be decorated with PerVertexNV in SPIR-V.
VK_NV_fragment_shader_barycentricVK_KHR_get_physical_device_properties2SPV_NV_fragment_shader_barycentric SPIR-V extension.GL_NV_fragment_shader_barycentric extension for GLSL source languages.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_NV_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME
The extension name.
|
static int |
VK_NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV
Extends
VkStructureType. |
public static final int VK_NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION
public static final java.lang.String VK_NV_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV
VkStructureType.Copyright LWJGL. All Rights Reserved. License terms.