skia2/tests/sksl/errors/ArrayUnspecifiedDimensions.glsl
John Stiles 9e952b379b Allow const int variables to be used for array sizes.
See http://review.skia.org/460037 for an example of the existing
behavior. Const variables are constant-expressions and should be allowed
here.

Change-Id: I41383d79668785f270b7825485e9f6fa56c553c1
Bug: skia:12549
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/460036
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-10-18 14:23:33 +00:00

8 lines
181 B
GLSL

### Compilation failed:
error: 1: expected array dimension
error: 2: array size must be an integer
error: 3: array size must be an integer
error: 5: missing index in '[]'
4 errors