skia2/tests/sksl/shared/OperatorsES2.glsl
John Stiles d842feea48 Avoid comma usage in Operators test.
This works around a GLSL compilation bug on the Tecno Spark 3 Pro.

Change-Id: I516bd64745a8e99cccc87ee4bb2e1f5d5b26c130
Bug: skia:11255
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/364116
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-02-02 14:34:24 +00:00

22 lines
366 B
GLSL

out vec4 sk_FragColor;
uniform vec4 colorGreen;
uniform vec4 colorRed;
vec4 main() {
float x = 1.0;
float y = 2.0;
x = 2.0;
y = 0.5;
bool c = sqrt(2.0) > 2.0;
bool d = true ^^ c;
bool e = c;
x += 12.0;
x -= 12.0;
x *= (y /= 10.0);
x = 6.0;
y = (float(c) * float(d)) * float(e);
y = 6.0;
return colorGreen;
}