third_party/spirv-cross/reference/shaders-msl-no-opt/asm/packing/scalar-float3x2-col-major.invalid.asm.frag
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct type_Foo |
| 7 | { |
| 8 | float2x4 a; |
| 9 | char _m1_pad[8]; |
| 10 | float b; |
| 11 | }; |
| 12 | |
| 13 | struct main0_out |
| 14 | { |
| 15 | float2 out_var_SV_Target [[color(0)]]; |
| 16 | }; |
| 17 | |
| 18 | fragment main0_out main0(constant type_Foo& Foo [[buffer(0)]]) |
| 19 | { |
| 20 | main0_out out = {}; |
| 21 | out.out_var_SV_Target = (Foo.a[0u].xy + Foo.a[1u].xy) + float2(Foo.b); |
| 22 | return out; |
| 23 | } |
| 24 |