blob: 7d7aa1cf5c672e8291f2f66bef77dc482fd4dd36 [file] [log] [blame]
uniform half4 color;
// TODO(johnstiles): the skslc standalone caps bits do not enable do-while support, so this test
// does not actually perform as described; the `returny` function is not inlined at all. This will
// be fixed when customizable caps-bit support is added to the golden tests.
inline half4 returny(half4 c) {
if (c.x > c.y) return c.xxxx;
if (c.y > c.z) return c.yyyy;
return c.zzzz;
}
void main() {
sk_FragColor = returny(color);
}