xref: /aosp_15_r20/external/skia/resources/sksl/shared/UniformArray.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform float testArray[5];
2uniform half4 colorGreen, colorRed;
3
4half4 main(float2 coords) {
5    for (int index=0; index<5; ++index) {
6        if (testArray[index] != float(index + 1)) {
7            return colorRed;
8        }
9    }
10    return colorGreen;
11}
12