Open
Description
- Implement
GetRemainingRecursionLevels
clang builtin, - Link
GetRemainingRecursionLevels
clang builtin withhlsl_intrinsics.h
- Add sema checks for
GetRemainingRecursionLevels
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
- Add codegen for
GetRemainingRecursionLevels
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
- Add codegen tests to
clang/test/CodeGenHLSL/builtins/GetRemainingRecursionLevels.hlsl
- Add sema tests to
clang/test/SemaHLSL/BuiltIns/GetRemainingRecursionLevels-errors.hlsl
- Create the
int_dx_GetRemainingRecursionLevels
intrinsic inIntrinsicsDirectX.td
- Create the
DXILOpMapping
ofint_dx_GetRemainingRecursionLevels
to253
inDXIL.td
- Create the
GetRemainingRecursionLevels.ll
andGetRemainingRecursionLevels_errors.ll
tests inllvm/test/CodeGen/DirectX/
DirectX
DXIL Opcode | DXIL OpName | Shader Model | Shader Stages |
---|---|---|---|
253 | GetRemainingRecursionLevels | 6.8 | ('node',) |
SPIR-V
There is no support for GetRemainingRecursionLevels
when targeting SPIR-V.
Test Case(s)
Example 1
//dxc GetRemainingRecursionLevels_test.hlsl -T lib_6_8 -enable-16bit-types -O0
RWBuffer<uint> buf0;
[shader("node")]
[NodeDispatchGrid(1, 1, 1)]
[numthreads(1, 1, 1)]
void fn() {
buf0[0] = GetRemainingRecursionLevels();
}
HLSL:
Syntax
uint GetRemainingRecursionLevels();
Type Description
Name | Template Type | Component Type | Size |
---|---|---|---|
ret | scalar | uint | 1 |
Minimum Shader Model
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 6.8 and higher shader models | yes |
Shader Stages
- Node Shader
See also
Metadata
Metadata
Assignees
Type
Projects
Status
Ready