WaveGetOrderedIndex function

Returns the index of this wave since the start of the draw/dispatch call.

Syntax

uint WaveGetOrderedIndex(void);

Parameters

This function has no parameters.

Return value

The wave index, with all waves in dispatch order.

Remarks

This function is supported from shader model 6.0, in the following types of shaders:

Vertex Hull Domain Geometry Pixel Compute
x x

 

Examples

uint appendOffset = WaveOrderedIndex();   // get offset of this wave

See also

Overview of Shader Model 6

Shader Model 6