@raph Funny, I wrote a (naive) bitonic sort in #wgpu no later than on Tuesday! Two resources that helped me were the webgpu sample (in typescript) https://webgpu.github.io/webgpu-samples/samples/bitonicSort and a great blogpost by @tgfrerer https://poniesandlight.co.uk/reflect/bitonic_merge_sort/
Have fun, seeing those pixels getting sorted is really satisfying.
@Az @tgfrerer Very cool! My understanding is that this implements only a single workgroup, while one of my constraints is dealing with a large and potentially quite variable number of elements. Also, from what I'm seeing so far, bitonic is not a great match from this application, but at the end of the day you have to measure and compare.