blob: 4be74ec88a0df80045c722a085a4b0bdf9d066bc [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct Out {
half4 x;
half4 y;
half4 z;
};
struct f_outputs {
half4 Out_x [[color(0)]];
half4 Out_y [[color(2)]];
half4 Out_z [[color(4)]];
};
struct f_inputs {
half4 fbf_1 [[color(1)]];
half4 fbf_3 [[color(3)]];
};
Out f_inner(half4 fbf_1, half4 fbf_3) {
return Out{.x=fbf_1, .y=half4(2.0h), .z=fbf_3};
}
fragment f_outputs f(f_inputs inputs [[stage_in]]) {
Out const v = f_inner(inputs.fbf_1, inputs.fbf_3);
f_outputs tint_wrapper_result = {};
tint_wrapper_result.Out_x = v.x;
tint_wrapper_result.Out_y = v.y;
tint_wrapper_result.Out_z = v.z;
return tint_wrapper_result;
}