Questions about Metal Ray Tracing

Its said that A17 will support hardware raytracing. It will support both RayQuery (Inline Ray Tracing) and RayPipeline features, right? And we can use ray tracing function on compute and graphics shaders, right?

Can we custom intersection test function? How can we handle sdf intersection test in ray tracing pipeline?

Replies

Hi jerrywwl,

You can leverage hardware-accelerated ray tracing through the Metal ray tracing API. This API supports both inline ray tracing, as well as building ray tracing pipelines, and you can perform ray tracing from compute as well as from graphics pipelines.

Please check out this time-marked video from WWDC on how to implement custom intersection test functions: https://developer.apple.com/videos/play/wwdc2020/10012/?time=586