third_party/spirv-cross/reference/shaders-msl-no-opt/comp/illegal-struct-name.asm.comp
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct Foo |
| 7 | { |
| 8 | float _abs; |
| 9 | }; |
| 10 | |
| 11 | struct Foo_1 |
| 12 | { |
| 13 | float _abs; |
| 14 | }; |
| 15 | |
| 16 | struct SSBO |
| 17 | { |
| 18 | Foo_1 foo; |
| 19 | Foo_1 foo2; |
| 20 | }; |
| 21 | |
| 22 | kernel void main0(device SSBO& _7 [[buffer(0)]]) |
| 23 | { |
| 24 | Foo f; |
| 25 | f._abs = _7.foo._abs; |
| 26 | int _abs = 10; |
| 27 | _7.foo2._abs = f._abs; |
| 28 | } |
| 29 |