Implement the WaveActiveAllEqual
HLSL Function
#99162
Labels
backend:DirectX
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
WaveActiveAllEqual
clang builtin,WaveActiveAllEqual
clang builtin withhlsl_intrinsics.h
WaveActiveAllEqual
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
WaveActiveAllEqual
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/WaveActiveAllEqual.hlsl
clang/test/SemaHLSL/BuiltIns/WaveActiveAllEqual-errors.hlsl
int_dx_WaveActiveAllEqual
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_WaveActiveAllEqual
to115
inDXIL.td
WaveActiveAllEqual.ll
andWaveActiveAllEqual_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_WaveActiveAllEqual
intrinsic inIntrinsicsSPIRV.td
WaveActiveAllEqual
lowering and map it toint_spv_WaveActiveAllEqual
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WaveActiveAllEqual.ll
DirectX
SPIR-V
OpGroupNonUniformAllEqual:
Description:
Evaluates a value for all active invocations in the group. The
result is true if Value is equal for all active invocations in the
group. Otherwise, the result is false.
Result Type must be a Boolean type.
Execution is a Scope that identifies the group of
invocations affected by this command. It must be Subgroup.
Value must be a scalar or vector of floating-point
type, integer type, or Boolean
type. The compare operation is based on this type, and if it
is a floating-point type, an ordered-and-equal compare is used.
Capability:
GroupNonUniformVote
Missing before version 1.3.
5
336
<id>
Result Type
Result <id>
Scope <id>
Execution
<id>
Value
Test Case(s)
Example 1
HLSL:
Returns true if the expression is the same for every active lane in the current wave (and thus uniform across it).
Syntax
Parameters
expr
The expression to evaluate.
<type>
can be a basic scalar, vector, or matrix type.Return value
Returns
true
for each component ofexpr
that is the same for every active lane in the current wave.<bool-type>
will be a scalar, vector, or matrix ofbool
, matching the dimensionality of the input<type>
.For instance, an input
<type>
ofmatrix<float, 4, 3>
will result in a return<bool-type>
ofmatrix<bool, 4, 3>
.Remarks
This function is supported from shader model 6.0 in all shader stages.
See also
Overview of Shader Model 6
Shader Model 6
The text was updated successfully, but these errors were encountered: