Package org.lwjgl.vulkan
Class NVFragmentShaderBarycentric
- java.lang.Object
-
- org.lwjgl.vulkan.NVFragmentShaderBarycentric
-
public final class NVFragmentShaderBarycentric extends java.lang.ObjectThis extension adds support for the following SPIR-V extension in Vulkan: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 interpolation
When using GLSL source-based shader languages, the following variables from
GL_NV_fragment_shader_barycentricmaps to these SPIR-V built-in decorations:in vec3 gl_BaryCoordNV;→BaryCoordNVin vec3 gl_BaryCoordNoPerspNV;→BaryCoordNoPerspNV
GLSL variables declared using the
__pervertexNVGLSL qualifier are expected to be decorated withPerVertexNVin SPIR-V.- Name String
VK_NV_fragment_shader_barycentric- Extension Type
- Device extension
- Registered Extension Number
- 204
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_get_physical_device_properties2
- Contact
- Pat Brown nvpbrown
- Last Modified Date
- 2018-08-03
- IP Status
- No known IP claims.
- Interactions and External Dependencies
- Requires the
SPV_NV_fragment_shader_barycentricSPIR-V extension. - Requires the
GL_NV_fragment_shader_barycentricextension for GLSL source languages.
- Requires the
- Contributors
- Pat Brown, NVIDIA
- Daniel Koch, NVIDIA
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVK_NV_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAMEThe extension name.static intVK_NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NVExtendsVkStructureType.
-
-
-
Field Detail
-
VK_NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION
public static final int VK_NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_NV_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME
public static final java.lang.String VK_NV_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV
ExtendsVkStructureType.- See Also:
- Constant Field Values
-
-