From 7893b4534a1034a001fd7670f3a2ad6d1db66bad Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 28 Aug 2024 22:27:23 -0700 Subject: Add `ReportIntersectionOptix` for optix. (#4949) --- tests/cuda/report-hit.slang | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/cuda/report-hit.slang (limited to 'tests') diff --git a/tests/cuda/report-hit.slang b/tests/cuda/report-hit.slang new file mode 100644 index 000000000..12b6d8c4b --- /dev/null +++ b/tests/cuda/report-hit.slang @@ -0,0 +1,9 @@ +//TEST:SIMPLE(filecheck=CHECK): -target cuda + +// CHECK: optixReportIntersection(3.0f, 2U, int(1), int(2), int(3)) + +[shader("intersection")] +void test() +{ + ReportHitOptix(3.0f, 2, 1, 2, 3); +} \ No newline at end of file -- cgit v1.2.3