Implement the CallShader
HLSL Function
#99180
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.
CallShader
clang builtin,CallShader
clang builtin withhlsl_intrinsics.h
CallShader
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
CallShader
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/CallShader.hlsl
clang/test/SemaHLSL/BuiltIns/CallShader-errors.hlsl
int_dx_CallShader
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_CallShader
to159
inDXIL.td
CallShader.ll
andCallShader_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_CallShader
intrinsic inIntrinsicsSPIRV.td
CallShader
lowering and map it toint_spv_CallShader
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/CallShader.ll
DirectX
SPIR-V
OpExecuteCallableKHR:
Description:
Reserved.
Capability:
RayTracingKHR
Reserved.
3
4446
<id>
SBT Index
<id>
Callable Data
Test Case(s)
Example 1
HLSL:
Invokes another shader from within a shader.
Syntax
This intrinsic function definition is equivalent to the following function template:
Parameters
ShaderIndex
An unsigned integer representing the index into the callable shader table specified in the call to DispatchRays.
Parameter
The user-defined parameters to pass to the callable shader. This parameter structure must match the parameter structure used in the callable shader pointed to in the shader table.
Return Value
void
Remarks
This function can be called from the following raytracing shader types:
See also
The text was updated successfully, but these errors were encountered: