SPIR-V Built-In
BaryCoordSmoothSampleAMD
Barycentric coordinates of a sample center
BaryCoordSmoothSampleAMD
The BaryCoordSmoothSampleAMD
decoration 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.
Valid Usage
VUID-BaryCoordSmoothSampleAMD-BaryCoordSmoothSampleAMD-04178
The BaryCoordSmoothSampleAMD
decoration must be used only within
the Fragment
Execution
Model
VUID-BaryCoordSmoothSampleAMD-BaryCoordSmoothSampleAMD-04179
The variable decorated with BaryCoordSmoothSampleAMD
must be
declared using the Input
Storage
Class
VUID-BaryCoordSmoothSampleAMD-BaryCoordSmoothSampleAMD-04180
The variable decorated with BaryCoordSmoothSampleAMD
must be
declared as a two-component vector of 32-bit floating-point values