Open ib00 opened 5 days ago
Thanks. So, if I wanted to support different branching factor, is it enough to just change the last step of the build algorithm (Collapse), or would a bigger change be needed (including traversal)?
You need to change both build and construction if you want to support branching factor other than 4.
For the build, it should be relatively easy; you just need to adjust to your node format here: https://github.com/GPUOpen-LibrariesAndSDKs/HIPRT/blob/main/hiprt/impl/BvhBuilderKernels.h#L548-L607
The traversal is hard-coded to 4 here: https://github.com/GPUOpen-LibrariesAndSDKs/HIPRT/blob/main/hiprt/impl/hiprt_device_impl.h#L318-L376
Thank you. This seems doable.
Two questions: