xref: /aosp_15_r20/external/skia/resources/sksl/shared/ConstGlobal.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen, colorRed;
2
3const int SEVEN = 7, TEN = 10;
4const half4x4 MATRIXFIVE = half4x4(5);
5
6noinline bool verify_const_globals(int seven, int ten, half4x4 matrixFive) {
7    return seven == 7 && ten == 10 && matrixFive == half4x4(5);
8}
9
10half4 main(float2 xy) {
11    return verify_const_globals(SEVEN, TEN, MATRIXFIVE) ? colorGreen : colorRed;
12}
13