Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Shader Model 6

Shader model 6.0 adds a range of wave operation intrinsics for the pixel and compute shaders.

In this section

TopicDescription

GlobalOrderedCountIncrement

Returns a per-lane globally ordered count.

QuadReadLaneAt

Returns the specified source value read from the lane of the current quad identified by an Id number which must be uniform across the quad.

QuadSwapX

Returns the specified source value read from the other lane in this quad in the X direction.

QuadSwapY

Returns the specified source value read from the other lane in this quad in the Y direction.

WaveAllBitAnd

Returns the bitwise AND of all the values of the expression across all active lanes in the current wave.

WaveAllMax

Returns the maximum value of the expression across all active lanes in the current wave.

WaveAllMin

Returns the minimum value of the expression across all active lanes in the current wave.

WaveAllBitOr

Returns the bitwise OR of all the values of the expression across all active lanes in the current wave.

WaveAllBitXor

Returns the bitwise XOR of all the values of the expression across all active lanes in the current wave.

WaveAllEqual

Returns true if the expression is the same for every active lane in the current wave (and thus uniform across it).

WaveAllProduct

Multiplies the values of the expression together across all active lanes in the current wave.

WaveAllSum

Sums up the value of the expression across all active lanes in the current wave and replicates it to all lanes in the current wave.

WaveAllTrue

Returns true if the expression is true in all active lanes in the current wave.

WaveAnyTrue

Returns true if the expression is true in any of the active lanes in the current wave.

WaveBallot

Returns a 64-bit unsigned integer bitmask of the evaluation of the Boolean expression for all active lanes in the specified wave.

WaveGetLaneCount

Returns the number of lanes in the current wave.

WaveGetLaneIndex

Returns the index of the current lane within the current wave.

WaveGetOrderedIndex

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

WaveIsHelperLane

Returns true if the current lane is a helper pixel of the specified lane.

WaveOnce

This result returns true for only one lane in the current wave.

WavePrefixProduct

Returns the product of all of the values in the lanes before this one of the specified wave.

WavePrefixSum

Returns the sum of all of the values in the active lanes with smaller indices than this one.

WaveReadFirstLane

Returns the value of the expression for the active lane of the current wave with the smallest index.

WaveReadLaneAt

Returns the value of the expression for the given lane index within the specified wave.

 

Related topics

Overview of Shader Model 6
Shader Models vs Shader Profiles

 

 

Show:
© 2017 Microsoft