skia2/tests/sksl/folding/golden/MatrixFolding.glsl
John Stiles 74192fde0d Migrate constant folding tests into a separate directory.
This CL also adds tests for vector*scalar and scalar*vector folding.
We currently do not constant-fold these, but support will be added in a
followup CL.

Change-Id: I68d7374ae15ab2f4d805a095803b645c92fb03d9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/352237
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-11 18:05:18 +00:00

19 lines
413 B
GLSL

out vec4 sk_FragColor;
void main() {
sk_FragColor.x = 1.0;
sk_FragColor.x = -2.0;
sk_FragColor.x = 3.0;
sk_FragColor.x = -4.0;
sk_FragColor.x = 5.0;
sk_FragColor.x = -6.0;
sk_FragColor.x = 7.0;
sk_FragColor.x = -8.0;
sk_FragColor.x = 9.0;
sk_FragColor.x = 10.0;
sk_FragColor.x = 11.0;
sk_FragColor.x = 12.0;
sk_FragColor.x = 13.0;
sk_FragColor.x = 14.0;
}