third_party/spirv-cross/reference/shaders-msl-no-opt/asm/packing/scalar-array-float3.asm.frag
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct type_Foo |
| 7 | { |
| 8 | float4 a[1]; |
| 9 | char _m1_pad[12]; |
| 10 | float b; |
| 11 | }; |
| 12 | |
| 13 | struct main0_out |
| 14 | { |
| 15 | float3 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[0].xyz + Foo.a[1].xyz) + float3(Foo.b); |
| 22 | return out; |
| 23 | } |
| 24 |