third_party/spirv-cross/shaders-msl-no-opt/comp/basic.dynamic-buffer.msl2.invalid.comp
raw| 1 | #version 450 |
| 2 | layout(local_size_x = 3, local_size_y = 3, local_size_z = 2) in; |
| 3 | |
| 4 | layout(set = 0, binding = 0) uniform Foo |
| 5 | { |
| 6 | int a; |
| 7 | int b; |
| 8 | }; |
| 9 | |
| 10 | layout(set = 0, binding = 1) uniform Bar |
| 11 | { |
| 12 | int c; |
| 13 | int d; |
| 14 | }; |
| 15 | |
| 16 | layout(set = 1, binding = 2) buffer Baz |
| 17 | { |
| 18 | int e; |
| 19 | int f; |
| 20 | } baz[3][3][2]; |
| 21 | |
| 22 | void main() |
| 23 | { |
| 24 | uvec3 coords = gl_GlobalInvocationID; |
| 25 | baz[coords.x][coords.y][coords.z].e = a + c; |
| 26 | baz[coords.x][coords.y][coords.z].f = b * d; |
| 27 | } |