1cb93a386Sopenharmony_ci// Expect 9 errors
2cb93a386Sopenharmony_ci
3cb93a386Sopenharmony_ci// SkSL does not support shrinking a vector via casting.
4cb93a386Sopenharmony_ci// A vector-slice can be performed in SkSL (or GLSL) by using a swizzle instead.
5cb93a386Sopenharmony_ci
6cb93a386Sopenharmony_ciconst half4 h4 = half4(0);
7cb93a386Sopenharmony_ciconst half3 h3 = half3(h4);
8cb93a386Sopenharmony_ciconst half2 h2 = half2(h4);
9cb93a386Sopenharmony_ciconst half  h  = half (h4);
10cb93a386Sopenharmony_ci
11cb93a386Sopenharmony_ciconst int4  i4 = int4(0);
12cb93a386Sopenharmony_ciconst int3  i3 = int3(i4);
13cb93a386Sopenharmony_ciconst int2  i2 = int2(i4);
14cb93a386Sopenharmony_ciconst int   i  = int (i4);
15cb93a386Sopenharmony_ci
16cb93a386Sopenharmony_ciconst bool4 b4 = bool4(false);
17cb93a386Sopenharmony_ciconst bool3 b3 = bool3(b4);
18cb93a386Sopenharmony_ciconst bool2 b2 = bool2(b4);
19cb93a386Sopenharmony_ciconst bool  b  = bool (b4);
20