skia2/tests/sksl/errors/VectorSlice.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

13 lines
796 B
GLSL

### Compilation failed:
error: 7: 'half4' is not a valid parameter to 'half3' constructor; use '.xyz' instead
error: 8: 'half4' is not a valid parameter to 'half2' constructor; use '.xy' instead
error: 9: 'half4' is not a valid parameter to 'half' constructor; use '.x' instead
error: 12: 'int4' is not a valid parameter to 'int3' constructor; use '.xyz' instead
error: 13: 'int4' is not a valid parameter to 'int2' constructor; use '.xy' instead
error: 14: 'int4' is not a valid parameter to 'int' constructor; use '.x' instead
error: 17: 'bool4' is not a valid parameter to 'bool3' constructor; use '.xyz' instead
error: 18: 'bool4' is not a valid parameter to 'bool2' constructor; use '.xy' instead
error: 19: 'bool4' is not a valid parameter to 'bool' constructor; use '.x' instead
9 errors