Implement the QuadReadAcrossDiagonal
HLSL Function
#99177
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.
QuadReadAcrossDiagonal
clang builtin,QuadReadAcrossDiagonal
clang builtin withhlsl_intrinsics.h
QuadReadAcrossDiagonal
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
QuadReadAcrossDiagonal
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/QuadReadAcrossDiagonal.hlsl
clang/test/SemaHLSL/BuiltIns/QuadReadAcrossDiagonal-errors.hlsl
int_dx_QuadReadAcrossDiagonal
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_QuadReadAcrossDiagonal
to123
inDXIL.td
QuadReadAcrossDiagonal.ll
andQuadReadAcrossDiagonal_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_QuadReadAcrossDiagonal
intrinsic inIntrinsicsSPIRV.td
QuadReadAcrossDiagonal
lowering and map it toint_spv_QuadReadAcrossDiagonal
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/QuadReadAcrossDiagonal.ll
DirectX
SPIR-V
OpGroupNonUniformQuadSwap:
Description:
Swap the Value of the invocation within the
quad with another invocation in the quad using Direction.
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.
Direction is the kind of swap to perform.
Direction must be a scalar of integer type, whose
Signedness operand is 0.
Direction must come from a constant
instruction.
The value returned in Result is the value provided to Value by
another invocation in the same quad scope instance. The invocation
providing this value is determined according to Direction.
A Direction of 0 indicates a horizontal swap;
A Direction of 1 indicates a vertical swap;
A Direction of 2 indicates a diagonal swap;
Direction must be one of the above values.
If an active invocation reads Value from an inactive invocation, the
resulting value is undefined.
Capability:
GroupNonUniformQuad
Missing before version 1.3.
6
366
<id>
Result Type
Result <id>
Scope <id>
Execution
<id>
Value
<id>
Direction
Test Case(s)
Example 1
Example 2
Example 3
HLSL:
Returns the specified local value which is read from the diagonally opposite lane in this quad.
Syntax
Parameters
localValue
The requested type.
Return value
The specified local value which is read from the diagonally opposite lane in this quad.
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: