SPIR-V Built-In

ShadingRateKHR

Shading rate of a fragment
ShadingRateKHR

Decorating a variable with the ShadingRateKHR built-in decoration will make that variable contain the fragment shading rate for the current fragment invocation.

Valid Usage

VUID-ShadingRateKHR-ShadingRateKHR-04490

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

VUID-ShadingRateKHR-ShadingRateKHR-04491

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

VUID-ShadingRateKHR-ShadingRateKHR-04492

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