| #include <metal_stdlib> |
| using namespace metal; |
| |
| struct main0_outputs { |
| int tint_symbol [[color(0)]]; |
| }; |
| |
| struct main1_outputs { |
| uint tint_symbol_1 [[color(1)]]; |
| }; |
| |
| struct main2_outputs { |
| float tint_symbol_2 [[color(2)]]; |
| }; |
| |
| struct main3_outputs { |
| float4 tint_symbol_3 [[color(3)]]; |
| }; |
| |
| struct main4_outputs { |
| half tint_symbol_4 [[color(4)]]; |
| }; |
| |
| struct main5_outputs { |
| half3 tint_symbol_5 [[color(5)]]; |
| }; |
| |
| int main0_inner() { |
| return 1; |
| } |
| |
| uint main1_inner() { |
| return 1u; |
| } |
| |
| float main2_inner() { |
| return 1.0f; |
| } |
| |
| float4 main3_inner() { |
| return float4(1.0f, 2.0f, 3.0f, 4.0f); |
| } |
| |
| half main4_inner() { |
| return 2.25h; |
| } |
| |
| half3 main5_inner() { |
| return half3(3.0h, 5.0h, 8.0h); |
| } |
| |
| fragment main0_outputs main0() { |
| main0_outputs tint_wrapper_result = {}; |
| tint_wrapper_result.tint_symbol = main0_inner(); |
| return tint_wrapper_result; |
| } |
| |
| fragment main1_outputs main1() { |
| main1_outputs tint_wrapper_result = {}; |
| tint_wrapper_result.tint_symbol_1 = main1_inner(); |
| return tint_wrapper_result; |
| } |
| |
| fragment main2_outputs main2() { |
| main2_outputs tint_wrapper_result = {}; |
| tint_wrapper_result.tint_symbol_2 = main2_inner(); |
| return tint_wrapper_result; |
| } |
| |
| fragment main3_outputs main3() { |
| main3_outputs tint_wrapper_result = {}; |
| tint_wrapper_result.tint_symbol_3 = main3_inner(); |
| return tint_wrapper_result; |
| } |
| |
| fragment main4_outputs main4() { |
| main4_outputs tint_wrapper_result = {}; |
| tint_wrapper_result.tint_symbol_4 = main4_inner(); |
| return tint_wrapper_result; |
| } |
| |
| fragment main5_outputs main5() { |
| main5_outputs tint_wrapper_result = {}; |
| tint_wrapper_result.tint_symbol_5 = main5_inner(); |
| return tint_wrapper_result; |
| } |