skia2/resources/sksl/shared/ConstArray.sksl
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

6 lines
123 B
Plaintext

const half test[4] = half[4](0, 1, 0, 1);
half4 main(float2 xy) {
return half4(test[0], test[1], test[2], test[3]);
}