xref: /aosp_15_r20/external/skia/tests/sksl/errors/SwitchHoistingAtomicArray.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 3: atomics are only permitted in workgroup variables and writable storage blocks
4    switch (x) { case 0: atomicUint[7] a, b = a; }
5                         ^^^^^^^^^^^^^^^
6error: 3: atomics are only permitted in workgroup variables and writable storage blocks
7    switch (x) { case 0: atomicUint[7] a, b = a; }
8                                          ^^^^^
9error: 3: opaque type 'atomicUint[7]' cannot use initializer expressions
10    switch (x) { case 0: atomicUint[7] a, b = a; }
11                                              ^
123 errors
13