Edge case I’m sure, but looks like a bug to me.
Uncomment the first line of the compute shader code, and the atomic add no longer functions.
2022.31030
Win 10
RTX 4080
glsl_bug.tox (1.1 KB)
Edge case I’m sure, but looks like a bug to me.
Uncomment the first line of the compute shader code, and the atomic add no longer functions.
2022.31030
Win 10
RTX 4080
glsl_bug.tox (1.1 KB)
I’m unsure what is actually legal here for GLSL, seems like some of this should be a compile error. In general though you should create your id and other variables inside of your main(), not outside of it.
I’ll look more into this though