SPIR-V Built-In

FragSizeEXT

Size of the screen-space area covered by the fragment
FragSizeEXT

Decorating a variable with the FragSizeEXT built-in decoration will make that variable contain the dimensions in pixels of the area that the fragment covers for that invocation.

If fragment density map is not enabled, FragSizeEXT will be filled with a value of (1,1).

Valid Usage

VUID-FragSizeEXT-FragSizeEXT-04220

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

VUID-FragSizeEXT-FragSizeEXT-04221

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

VUID-FragSizeEXT-FragSizeEXT-04222

The variable decorated with FragSizeEXT must be declared as a two-component vector of 32-bit integer values