xref: /aosp_15_r20/external/skia/tests/sksl/errors/VectorSlice.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 7: 'half4' is not a valid parameter to 'half3' constructor; use '.xyz' instead
4const half3 h3 = half3(h4);
5                 ^^^^^^^^^
6error: 8: 'half4' is not a valid parameter to 'half2' constructor; use '.xy' instead
7const half2 h2 = half2(h4);
8                 ^^^^^^^^^
9error: 9: 'half4' is not a valid parameter to 'half' constructor; use '.x' instead
10const half  h  = half (h4);
11                 ^^^^^^^^^
12error: 12: 'int4' is not a valid parameter to 'int3' constructor; use '.xyz' instead
13const int3  i3 = int3(i4);
14                 ^^^^^^^^
15error: 13: 'int4' is not a valid parameter to 'int2' constructor; use '.xy' instead
16const int2  i2 = int2(i4);
17                 ^^^^^^^^
18error: 14: 'int4' is not a valid parameter to 'int' constructor; use '.x' instead
19const int   i  = int (i4);
20                 ^^^^^^^^
21error: 17: 'bool4' is not a valid parameter to 'bool3' constructor; use '.xyz' instead
22const bool3 b3 = bool3(b4);
23                 ^^^^^^^^^
24error: 18: 'bool4' is not a valid parameter to 'bool2' constructor; use '.xy' instead
25const bool2 b2 = bool2(b4);
26                 ^^^^^^^^^
27error: 19: 'bool4' is not a valid parameter to 'bool' constructor; use '.x' instead
28const bool  b  = bool (b4);
29                 ^^^^^^^^^
309 errors
31