microsoft / DirectX-Graphics-Samples

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.
MIT License
5.89k stars 2k forks source link

Raytracing tail call hello world #822

Open kingofthebongo2008 opened 1 year ago

kingofthebongo2008 commented 1 year ago

Intel recommends to do tail call optimizations in raygen shaders, means TraceRay should be the last call This saves the hardware time to recover after the call, fetch stuff and put it back It is good this best practice to be right in the first example.

kingofthebongo2008 commented 1 year ago

@walbourn Hello, may be you can merge this