VkRadixSort icon indicating copy to clipboard operation
VkRadixSort copied to clipboard

multi_radixsort.comp fails to compile on AMD graphics

Open pavelsevecek opened this issue 8 months ago • 1 comments

The compilation of the compute shader fails on AMD Radeon 780M Graphics. The error is on the line 74: https://github.com/MircoWerner/VkRadixSort/blob/96178e0515292f96de112fea0c1b469416388c7e/multiradixsort/resources/shaders/multi_radixsort.comp#L74C16-L74C75

subgroupBroadcast is using gl_SubgroupID which isn't a compile-time constant.

The compiler further complains about using atomicAdd on the bin_flags variable, but that can be easily fixed by flattening the array.

pavelsevecek avatar May 26 '24 14:05 pavelsevecek