SPIR-V Built-In

InvocationsPerPixelNV

Number of fragment shader invocations for the current pixel
InvocationsPerPixelNV

Decorating a variable with the InvocationsPerPixelNV built-in decoration will make that variable contain the maximum number of fragment shader invocations per pixel, as derived from the effective shading rate for the fragment. If a primitive does not fully cover a pixel, the number of fragment shader invocations for that pixel may be less than the value of InvocationsPerPixelNV. If the shading rate indicates a fragment covering multiple pixels, then InvocationsPerPixelNV will be one.

Valid Usage

VUID-InvocationsPerPixelNV-InvocationsPerPixelNV-04260

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

VUID-InvocationsPerPixelNV-InvocationsPerPixelNV-04261

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

VUID-InvocationsPerPixelNV-InvocationsPerPixelNV-04262

The variable decorated with InvocationsPerPixelNV must be declared as a scalar 32-bit integer value