skia2/tests/sksl/folding/ArrayFolding.glsl
John Stiles 0b84159e3b Improve array-indexing tests.
Previously, we didn't have tests which leveraged constant-evaluation of
array indexing (because we didn't support it), and our test files
commingled constant-indexing into vectors with constant-indexing into
arrays.

The test files now separate vector- and array-handling into separate
tests, and a ton of new cases have been added to ArrayFolding. The
ArrayFolding tests now require constant-evaluation of array indexing,
so they fail in this CL, but will be fixed in the followup CL.

Change-Id: I3b663e743d97d6db80627bc9b7808f88c99917a7
Bug: skia:12472
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/469528
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2021-11-10 18:31:28 +00:00

10 lines
289 B
GLSL

### Compilation failed:
error: 16: array size must be an integer
error: 17: array size must be an integer
error: 17: expected 'int[1]', but found 'int[2]'
error: 18: array size must be an integer
error: 18: expected 'int[1]', but found 'int[3]'
error: 31: unknown identifier 'c'
6 errors