SPIR-V Built-In

TileOffsetQCOM

Tile offset of a shader invocation
TileOffsetQCOM

The TileOffsetQCOM decoration can be applied to a shader input which will be filled with the framebuffer coordinates of the active tile.

When per-tile execution model is enabled, for the current shader invocation x and y components of TileOffsetQCOM reflect the framebuffer integer coordinates of the top-left texel of the tile corresponding to the shader invocation.

Otherwise, the x and y components of TileOffsetQCOM are filled with (0,0).

Valid Usage

VUID-TileOffsetQCOM-TileOffsetQCOM-10626

The TileOffsetQCOM decoration must be used only within the Fragment Execution Model or GLCompute Execution Model.

VUID-TileOffsetQCOM-TileOffsetQCOM-10627

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

VUID-TileOffsetQCOM-TileOffsetQCOM-10628

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