26fdcbb38b
We already had support for &&, ||, ^^ but somehow the common cases of == and != were not implemented in the constant-folder. This CL also updates the test to return a green/red color on success or failure, instead of assigning arbitrary numbers into sk_FragColor that don't mean anything. The long-term plan is to signal success or failure of each test by color code; we can display these colors as swatches in a GM slide for testing purposes. Change-Id: I0810108b3c6b656a60cd8aa64ceefd765eff0157 Bug: skia:11112 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/355984 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
6 lines
55 B
GLSL
6 lines
55 B
GLSL
|
|
vec4 main() {
|
|
return vec4(0.0, 1.0, 0.0, 1.0);
|
|
|
|
}
|