SPIR-V Built-In

BaryCoordSmoothAMD

Barycentric coordinates of a fragment center
BaryCoordSmoothAMD

The BaryCoordSmoothAMD 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 the fragment’s center. The K coordinate of the barycentric coordinates can be derived given the identity I + J + K = 1.0.

Valid Usage

VUID-BaryCoordSmoothAMD-BaryCoordSmoothAMD-04172

The BaryCoordSmoothAMD decoration must be used only within the Fragment Execution Model

VUID-BaryCoordSmoothAMD-BaryCoordSmoothAMD-04173

The variable decorated with BaryCoordSmoothAMD must be declared using the Input Storage Class

VUID-BaryCoordSmoothAMD-BaryCoordSmoothAMD-04174

The variable decorated with BaryCoordSmoothAMD must be declared as a two-component vector of 32-bit floating-point values