Implement the WaveReadLaneFirst
HLSL Function
#99164
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.
WaveReadLaneFirst
clang builtin,WaveReadLaneFirst
clang builtin withhlsl_intrinsics.h
WaveReadLaneFirst
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
WaveReadLaneFirst
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/WaveReadLaneFirst.hlsl
clang/test/SemaHLSL/BuiltIns/WaveReadLaneFirst-errors.hlsl
int_dx_WaveReadLaneFirst
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_WaveReadLaneFirst
to118
inDXIL.td
WaveReadLaneFirst.ll
andWaveReadLaneFirst_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_WaveReadLaneFirst
intrinsic inIntrinsicsSPIRV.td
WaveReadLaneFirst
lowering and map it toint_spv_WaveReadLaneFirst
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WaveReadLaneFirst.ll
DirectX
SPIR-V
OpGroupNonUniformBroadcastFirst:
Description:
Result is the Value of the invocation from the active
invocation with the lowest id in the group to all active
invocations in the group.
Result Type must be a scalar or vector of floating-point
type, integer type, or Boolean
type.
Execution is a Scope that identifies the group of
invocations affected by this command. It must be Subgroup.
The type of Value must be the same as Result Type.
Capability:
GroupNonUniformBallot
Missing before version 1.3.
5
338
<id>
Result Type
Result <id>
Scope <id>
Execution
<id>
Value
Test Case(s)
Example 1
HLSL:
Returns the value of the expression for the active lane of the current wave with the smallest index.
Syntax
Parameters
expr
The expression to evaluate.
Return value
The resulting value is uniform across the wave.
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: