skia2/tests/sksl/errors/ArrayConstructorElementCount.glsl
John Stiles 248f57b39b Reject array constructors with the wrong number of elements.
We now catch this error at IR generation time; previously we'd send it
to the driver (where it would fail to compile).

Change-Id: I45890214ffa164be1c0f359320f942bc4dc479ca
Bug: skia:11265
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/365697
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-02-03 22:33:02 +00:00

7 lines
301 B
GLSL

### Compilation failed:
error: 3: invalid arguments to 'float[2]' constructor (expected 2 elements, but found 0)
error: 4: invalid arguments to 'float[2]' constructor (expected 2 elements, but found 1)
error: 6: invalid arguments to 'float[2]' constructor (expected 2 elements, but found 3)
3 errors