third_party/spirv-cross/reference/shaders-msl-no-opt/components/fragment-output-component.frag
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct main0_out |
| 7 | { |
| 8 | float4 FragColor0 [[color(0)]]; |
| 9 | }; |
| 10 | |
| 11 | fragment main0_out main0() |
| 12 | { |
| 13 | main0_out out = {}; |
| 14 | float FragColor0 = {}; |
| 15 | float2 FragColor1 = {}; |
| 16 | float FragColor3 = {}; |
| 17 | FragColor0 = 1.0; |
| 18 | FragColor1 = float2(2.0, 3.0); |
| 19 | FragColor3 = 4.0; |
| 20 | out.FragColor0.x = FragColor0; |
| 21 | out.FragColor0.yz = FragColor1; |
| 22 | out.FragColor0.w = FragColor3; |
| 23 | return out; |
| 24 | } |
| 25 |