amdreallyfast/GpuRadixSort
This demo sorts an SSBO composed of generic OriginalData structures according to a particular value in the OriginalData structure. This is a more practical application (for me) than a simple Radix sorting over integers because this demo lays the groundwork for me being able to sort many Particle structures along a Z-order curve by actually shuffling around the ParticleBuffer according to the particles' position-derived Morton codes. And that will be a setup for the parallel creation of a bounding volume hierarchy. A simple Radix sort over integers is nice and all, but it doesn't lay the groundwork for something practical like this demo does.
This demo sorts an SSBO composed of generic OriginalData structures according to a particular value in the OriginalData structure. This is a more practical application (for me) than a simple Radix sorting over integers because this demo lays the groundwork for me being able to sort many Particle structures along a Z-order curve by actually shuffling around the ParticleBuffer according to the particles' position-derived Morton codes. And that will be a setup for the parallel creation of a bounding volume hierarchy. A simple Radix sort over integers is nice and all, but it doesn't lay the groundwork for something practical like this demo does.