SPIR-V Built-In

PrimitiveTriangleIndicesEXT

Indices of triangle primitives in a mesh shader
PrimitiveTriangleIndicesEXT

Decorating a variable with the PrimitiveTriangleIndicesEXT decoration will make that variable contain the output array of vertex index values for triangle primitives.

Valid Usage

VUID-PrimitiveTriangleIndicesEXT-PrimitiveTriangleIndicesEXT-07053

The PrimitiveTriangleIndicesEXT decoration must be used only within the MeshEXT Execution Model

VUID-PrimitiveTriangleIndicesEXT-PrimitiveTriangleIndicesEXT-07054

The PrimitiveTriangleIndicesEXT decoration must be used with the OutputTrianglesEXT Execution Mode

VUID-PrimitiveTriangleIndicesEXT-PrimitiveTriangleIndicesEXT-07055

The variable decorated with PrimitiveTriangleIndicesEXT must be declared using the Output Storage Class

VUID-PrimitiveTriangleIndicesEXT-PrimitiveTriangleIndicesEXT-07056

The variable decorated with PrimitiveTriangleIndicesEXT must be declared as an array of three component vector 32-bit integer values

VUID-PrimitiveTriangleIndicesEXT-PrimitiveTriangleIndicesEXT-07057

All index values of the array decorated with PrimitiveTriangleIndicesEXT must be in the range [0, N-1], where N is the value specified by the OutputVertices

Execution Mode

VUID-PrimitiveTriangleIndicesEXT-PrimitiveTriangleIndicesEXT-07058

The size of the array decorated with PrimitiveTriangleIndicesEXTmust match the value specified by OutputPrimitivesEXT