SPIR-V Built-In

BaryCoordNoPerspCentroidAMD

Barycentric coordinates of a fragment centroid in screen-space
BaryCoordNoPerspCentroidAMD

The BaryCoordNoPerspCentroidAMD 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 linear interpolation at the centroid. The K coordinate of the barycentric coordinates can be derived given the identity I + J + K = 1.0.

Valid Usage

VUID-BaryCoordNoPerspCentroidAMD-BaryCoordNoPerspCentroidAMD-04163

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

VUID-BaryCoordNoPerspCentroidAMD-BaryCoordNoPerspCentroidAMD-04164

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

VUID-BaryCoordNoPerspCentroidAMD-BaryCoordNoPerspCentroidAMD-04165

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