xref: /aosp_15_r20/external/skia/resources/sksl/shared/FunctionAnonymousParameters.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen, colorRed;
2
3struct S { int i; };
4
5half4 fnGreen(bool b, float2) {
6    return colorGreen;
7}
8
9half4 fnRed(int, float f, S) {
10    return colorRed;
11}
12
13half4 main(float2 coords) {
14    return bool(colorGreen.g) ? fnGreen(true, coords) : fnRed(123, 3.14, S(0));
15}
16