SceneKit custom Metal Raytracing

How can I set Scenekit to use a custom rendering?


Ex, I would like to use Metal Ray Tracing code bellow, as a custom Scenekit rendering mode

https://developer.apple.com/documentation/metalperformanceshaders/metal_for_accelerating_ray_tracing
Any input on where I can start is higly appreciated! : )
best

SceneKit custom Metal Raytracing
 
 
Q