third_party/spirv-cross/reference/shaders-msl-no-opt/asm/comp/composite-construct-buffer-struct.asm.comp
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct Block |
| 7 | { |
| 8 | uint2 _m0[2]; |
| 9 | uint2 _m1[2]; |
| 10 | }; |
| 11 | |
| 12 | struct SSBO |
| 13 | { |
| 14 | Block _m0[3]; |
| 15 | }; |
| 16 | |
| 17 | kernel void main0(device SSBO& ssbo [[buffer(0)]]) |
| 18 | { |
| 19 | threadgroup uint2 _18[2]; |
| 20 | ssbo._m0[0u] = Block{ { ssbo._m0[0u]._m1[0], ssbo._m0[0u]._m1[1] }, { ssbo._m0[0u]._m1[0], ssbo._m0[0u]._m1[1] } }; |
| 21 | } |
| 22 |