Implement the QuadReadLaneAt
HLSL Function
#99174
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.
QuadReadLaneAt
clang builtin,QuadReadLaneAt
clang builtin withhlsl_intrinsics.h
QuadReadLaneAt
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
QuadReadLaneAt
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/QuadReadLaneAt.hlsl
clang/test/SemaHLSL/BuiltIns/QuadReadLaneAt-errors.hlsl
int_dx_QuadReadLaneAt
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_QuadReadLaneAt
to122
inDXIL.td
QuadReadLaneAt.ll
andQuadReadLaneAt_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_QuadReadLaneAt
intrinsic inIntrinsicsSPIRV.td
QuadReadLaneAt
lowering and map it toint_spv_QuadReadLaneAt
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/QuadReadLaneAt.ll
DirectX
SPIR-V
OpGroupNonUniformQuadBroadcast:
Description:
Result is the Value of the invocation within the
quad with a quad index equal to Index.
Result Type must be a scalar or vector of floating-point
type, integer type, or Boolean
type.
Execution is a Scope, but has no effect on the
behavior of this instruction. It must be Subgroup.
The type of Value must be the same as Result Type.
Index must be a scalar of integer type, whose
Signedness operand is 0.
Before version 1.5, Index must come from a constant
instruction. Starting with version 1.5,
Index must be dynamically uniform.
If the value of Index is greater than or equal to 4, or refers to an
inactive invocation, the resulting value is undefined.
Capability:
GroupNonUniformQuad
Missing before version 1.3.
6
365
<id>
Result Type
Result <id>
Scope <id>
Execution
<id>
Value
<id>
Index
Test Case(s)
Example 1
Example 2
Example 3
HLSL:
Returns the specified source value from the lane identified by the lane ID within the current quad.
Syntax
Parameters
sourceValue
The requested type.
quadLaneID
The lane ID; this will be a value from 0 to 3.
Return value
The specified source value. The result of this function is uniform across the quad. If the source lane is inactive, the results are undefined.
Remarks
For more information on quads, refer to Overview of Shader Model 6.
This function is supported from shader model 6.0 only in pixel and compute shaders.
See also
Shader Model 6
The text was updated successfully, but these errors were encountered: