2021-03-25 21:04:36 +00:00
|
|
|
uniform half4 colorGreen;
|
|
|
|
|
2021-03-17 17:20:10 +00:00
|
|
|
// We don't inline functions with out parameters. (skia:11326)
|
2021-03-25 21:04:36 +00:00
|
|
|
inline void outParameter(inout half4 x) {
|
|
|
|
x *= x;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
|
|
|
|
2021-04-21 18:27:08 +00:00
|
|
|
half4 main(float2 coords) {
|
2021-03-25 21:04:36 +00:00
|
|
|
half4 c = colorGreen;
|
|
|
|
outParameter(c);
|
|
|
|
return c;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|