Skip to content

Commit 79ca6fa

Browse files
committed
Add testing
1 parent d9f4f63 commit 79ca6fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/tests/wgpu-gpu/ray_tracing/shader.wgsl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,11 @@ fn invalid_usages() {
124124
rayQueryProceed(&rq);
125125
let intersection = rayQueryGetCommittedIntersection(&rq);
126126
}
127+
{
128+
var rq: ray_query;
129+
rayQueryInitialize(&rq, acc_struct, RayDesc(0u, 0xFFu, 0.001, 100000.0, vec3f(0.0, 0.0, 0.0), vec3f(0.0, 0.0, 1.0)));
130+
rayQueryProceed(&rq);
131+
// The acceleration structure has been set up to not generate an intersections, meaning terminate is invalid here.
132+
rayQueryTerminate(&rq);
133+
}
127134
}

0 commit comments

Comments
 (0)