xref: /aosp_15_r20/external/skia/resources/sksl/shared/ConstVariableComparison.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen, colorRed;
2
3half4 main(float2 coords) {
4  const float4 a = float4(0);
5  const float4 b = float4(1);
6  const float4 c = abs(b * 1);
7  if (a == b || b != c) {
8      return colorRed;
9  } else {
10      return colorGreen;
11  }
12}
13