skia2/tests/sksl/errors/ConstructorArgumentCount.glsl
John Stiles 7729e0a97e Add hints to slicing-constructor error messages.
This is intended to make it easier for users porting GLSL code with
slicing constructors; the error message should make it clear that a
swizzle can be used here instead.

Change-Id: Ib03276ee910dfffd6146717dbd347b058f9940d1
Bug: skia:12193
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/427200
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2021-07-13 14:12:23 +00:00

7 lines
270 B
GLSL

### Compilation failed:
error: 1: invalid arguments to 'float3' constructor (expected 3 scalars, but found 2)
error: 2: invalid arguments to 'float3' constructor (expected 3 scalars, but found 4)
error: 3: 'int3' is not a valid parameter to 'bool' constructor
3 errors