Skip to content

Commit f472acc

Browse files
author
kevyuu
committed
Use inline spirv to replace ReportHit
1 parent cd6b9f0 commit f472acc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

71_RayTracingPipeline/app_resources/raytrace.rint.hlsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ void main()
4040

4141
const float32_t tHit = hitSphere(sphere, ray);
4242

43+
[[vk::ext_storage_class(spv::StorageClassHitAttributeKHR)]]
4344
ProceduralHitAttribute hitAttrib;
4445

4546
// Report hit point
4647
if (tHit > 0)
4748
{
4849
hitAttrib.center = sphere.center;
49-
ReportHit(tHit, 0, hitAttrib);
50+
spirv::reportIntersectionKHR(tHit, 0);
5051
}
5152
}

0 commit comments

Comments
 (0)