SPIR-V Built-In

FragmentSizeNV

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

Decorating a variable with the FragmentSizeNV built-in decoration will make that variable contain the width and height of the fragment.

Valid Usage

VUID-FragmentSizeNV-FragmentSizeNV-04226

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

VUID-FragmentSizeNV-FragmentSizeNV-04227

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

VUID-FragmentSizeNV-FragmentSizeNV-04228

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