Edit

QuadReadLaneAt function

Returns the specified source value from the lane identified by the lane ID within the current quad.

Syntax

<type> QuadReadLaneAt(
   <type> sourceValue,
   uint   quadLaneID  
);

Parameters

sourceValue

The requested type.

quadLaneID

The lane ID, in the range 0 through 3.

Return value

The value of sourceValue from the selected lane. If the selected source lane is inactive, the result is undefined.

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