Skip to content

Commit

Permalink
Pass ray flags to intersection shader
Browse files Browse the repository at this point in the history
When handling OpReportIntersectionKHR(lgc.rt.report.hit), we need the ray flags
to determine whether to terminate on first hit.
  • Loading branch information
LLJJDD committed Nov 3, 2023
1 parent 9703887 commit 28f9235
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llpc/lower/llpcSpirvLowerRayTracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,7 @@ SmallSet<unsigned, 4> SpirvLowerRayTracing::getShaderExtraInputParams(ShaderStag
params.insert(TraceParam::TCurrent);
params.insert(TraceParam::Kind);
params.insert(TraceParam::DuplicateAnyHit);
params.insert(TraceParam::RayFlags);
break;
default:
break;
Expand Down

0 comments on commit 28f9235

Please sign in to comment.