Has anyone here tried to build an Octtree in a shader?
Basically this requires syncrhonization and a simple attempt to implement a per-node mutex using InterlockedAdd or InterlockedCompareExchange causes shader to lock up and get killed by driver.
Online sources seem to suggest using Morton codes and sorting them. Been wondering if this can be done without a sorting phase.