Implement the ReportHit
HLSL Function
#99179
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.
ReportHit
clang builtin,ReportHit
clang builtin withhlsl_intrinsics.h
ReportHit
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
ReportHit
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/ReportHit.hlsl
clang/test/SemaHLSL/BuiltIns/ReportHit-errors.hlsl
int_dx_ReportHit
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_ReportHit
to158
inDXIL.td
ReportHit.ll
andReportHit_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_ReportHit
intrinsic inIntrinsicsSPIRV.td
ReportHit
lowering and map it toint_spv_ReportHit
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/ReportHit.ll
DirectX
SPIR-V
OpReportIntersectionKHR:
Description:
(OpReportIntersectionNV)**
Reserved.
Capability:
RayTracingNV, RayTracingKHR
Reserved.
5
5334
<id>
Result Type
Result <id>
<id>
Hit
<id>
HitKind
Test Case(s)
Example 1
HLSL:
Called by an intersection shader to report a ray intersection.
Syntax
This intrinsic function definition is equivalent to the following function template:
Parameters
THit
A float value specifying the parametric distance of the intersection..
HitKind
An unsigned integer that identifies the type of hit that occurred. This is a user-specified value in the range of 0-127. The value can be read by any hit or closest hit shaders with the HitKind intrinsic.
Attributes
The user-defined Intersection Attribute Structure structure specifying the intersection attributes.
Return Value
bool True if the hit was accepted. A hit is rejected if THit is outside the current ray interval, or the any hit shader calls IgnoreHit. The current ray interval is defined by RayTMin and RayTCurrent.
Remarks
This function can be called from the following raytracing shader types:
See also
Direct3D 12 Raytracing HLSL Reference
The text was updated successfully, but these errors were encountered: