skia2/tests/sksl/shared/ConstArray.glsl
John Stiles 82491c5d65 Enable proper testing of const arrays.
This test was generating invalid code in Metal
(http://review.skia.org/408356), but we didn't catch it because the code
wasn't actually being run.

Change-Id: I649034593a566f9e835b1cf7b0702c64952d31ef
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/408641
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-05-14 13:37:12 +00:00

7 lines
145 B
GLSL

out vec4 sk_FragColor;
const float test[4] = float[4](0.0, 1.0, 0.0, 1.0);
vec4 main() {
return vec4(test[0], test[1], test[2], test[3]);
}