Edit

QuadReadAcrossDiagonal function

Returns the specified local value which is read from the diagonally opposite lane in this quad.

Syntax

<type> QuadReadAcrossDiagonal(
   <type> localValue
);

Parameters

localValue

The requested type.

Return value

The specified local value which is read from the diagonally opposite lane in this quad.

Remarks

For more information on quads, refer to Overview of Shader Model 6.

This function is supported in pixel and compute shaders starting with shader model 6.0. In compute shaders targeting shader model 6.0 through 6.5, the mapping of threads to quads is implementation-dependent. Shader model 6.6 defines the quad layout for compute shaders and adds support for this function in amplification and mesh shaders.

 

See also

Shader Model 6