Multiple times of intersection tests in one kernel

Hello, I am doing ray tracing and plan to do multiple intersection tests with different rays in one kernel (shading loop). It works fine when I have two intersection tests, but will cause gpu break down when there are three intersection tests. Is there some rules that I need to obey? Thanks.

  • Update: This only occurs on the AMD Graphic Card, it works well on Apple silicons. You can test with AcceleratingRayTracingWithMetal sample code and add some non-useful intersection in the loop on an intel-based Mac!

  • Not quite sure though. Test on MacOS 13 intel Mac is fine. Could be some problem in Sonoma 14.

Add a Comment