Class AMDShaderExplicitVertexParameter
- java.lang.Object
-
- org.lwjgl.vulkan.AMDShaderExplicitVertexParameter
-
public final class AMDShaderExplicitVertexParameter extends java.lang.ObjectWhen theVK_AMD_shader_explicit_vertex_parameterdevice extension is enabled the application can pass a SPIR-V module toCreateShaderModulethat uses theSPV_AMD_shader_explicit_vertex_parameterSPIR-V extension.When the
VK_AMD_shader_explicit_vertex_parameterdevice extension is enabled theCustomInterpAMDinterpolation decoration can also be used with fragment shader inputs which indicate that the decorated inputs can only be accessed by the extended instructionInterpolateAtVertexAMDand allows accessing the value of the inputs for individual vertices of the primitive.When the
VK_AMD_shader_explicit_vertex_parameterdevice extension is enabled inputs can be also decorated with theCustomInterpAMDinterpolation decoration, including fragment shader inputs that are signed or unsigned integers, integer vectors, or any double-precision floating-point type. Inputs decorated withCustomInterpAMDcan only be accessed by the extended instructionInterpolateAtVertexAMDand allows accessing the value of the input for individual vertices of the primitive.The
BaryCoordNoPerspAMDdecoration can be used to decorate a fragment shader input variable. This variable will contain the (I,J) pair of the barycentric coordinates corresponding to the fragment evaluated using linear interpolation at the pixel's center. The K coordinate of the barycentric coordinates can be derived given the identity I + J + K = 1.0.The
BaryCoordNoPerspCentroidAMDdecoration can be used to decorate a fragment shader input variable. This variable will contain the (I,J) pair of the barycentric coordinates corresponding to the fragment evaluated using linear interpolation at the centroid. The K coordinate of the barycentric coordinates can be derived given the identity I + J + K = 1.0.The
BaryCoordNoPerspCentroidAMDdecoration can be used to decorate a fragment shader input variable. This variable will contain the (I,J) pair of the barycentric coordinates corresponding to the fragment evaluated using linear interpolation at each covered sample. The K coordinate of the barycentric coordinates can be derived given the identity I + J + K = 1.0.The
BaryCoordPullModelAMDdecoration can be used to decorate a fragment shader input variable. This variable will contain (1/W, 1/I, 1/J) evaluated at the pixel center and can be used to calculate gradients and then interpolate I, J, and W at any desired sample location.The
BaryCoordSmoothAMDdecoration can be used to decorate a fragment shader input variable. This variable will contain the (I,J) pair of the barycentric coordinates corresponding to the fragment evaluated using perspective interpolation at the pixel's center. The K coordinate of the barycentric coordinates can be derived given the identity I + J + K = 1.0.The
BaryCoordSmoothCentroidAMDdecoration can be used to decorate a fragment shader input variable. This variable will contain the (I,J) pair of the barycentric coordinates corresponding to the fragment evaluated using perspective interpolation at the centroid. The K coordinate of the barycentric coordinates can: be derived given the identity I + J + K = 1.0.The
BaryCoordSmoothCentroidAMDdecoration can be used to decorate a fragment shader input variable. This variable will contain the (I,J) pair of the barycentric coordinates corresponding to the fragment evaluated using perspective interpolation at each covered sample. The K coordinate of the barycentric coordinates can: be derived given the identity I + J + K = 1.0.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringVK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_EXTENSION_NAMEThe extension name.static intVK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSIONThe extension specification version.
-
-
-
Field Detail
-
VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSION
public static final int VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_EXTENSION_NAME
public static final java.lang.String VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
-