xref: /aosp_15_r20/external/skia/gm/DATA/skia_resources/sksl/inliner/InlinerManglesNames.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 color;
2
3half add(half a, half b) {
4    half c = a + b;
5    return c;
6}
7
8half mul(half a, half b) {
9    return a * b;
10}
11
12half fused_multiply_add(half a, half b, half c) {
13    return add(mul(a, b), c);
14}
15
16half4 main(float2 coords) {
17    half a = fused_multiply_add(color.x, color.y, color.z);
18    half b = fused_multiply_add(color.y, color.z, color.w);
19    half c = fused_multiply_add(color.z, color.w, color.x);
20    return half4(a, b, mul(c, c), mul(a, mul(b, c)));
21}
22