xref: /aosp_15_r20/external/skia/tests/sksl/errors/VectorIndexOutOfRange.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 1: index -1 out of range for 'half4'
4void half4_neg1()              { half4 h;        half    v = h[-1]; }
5                                                               ^^
6error: 6: index 4 out of range for 'half4'
7void half4_4()                 { half4 h;        half    v = h[4]; }
8                                                               ^
9error: 7: index 1000000000 out of range for 'half4'
10void half4_huge()              { half4 h;        half    v = h[1000000000]; }
11                                                               ^^^^^^^^^^
12error: 9: index -1 out of range for 'half3'
13void half3_neg1()              { half3 h;        half    v = h[-1]; }
14                                                               ^^
15error: 13: index 3 out of range for 'half3'
16void half3_3()                 { half3 h;        half    v = h[3]; }
17                                                               ^
18error: 14: index 4 out of range for 'half3'
19void half3_4()                 { half3 h;        half    v = h[4]; }
20                                                               ^
21error: 15: index 1000000000 out of range for 'half3'
22void half3_huge()              { half3 h;        half    v = h[1000000000]; }
23                                                               ^^^^^^^^^^
24error: 17: index -1 out of range for 'half2'
25void half2_neg1()              { half2 h;        half    v = h[-1]; }
26                                                               ^^
27error: 20: index 2 out of range for 'half2'
28void half2_2()                 { half2 h;        half    v = h[2]; }
29                                                               ^
30error: 21: index 3 out of range for 'half2'
31void half2_3()                 { half2 h;        half    v = h[3]; }
32                                                               ^
33error: 22: index 4 out of range for 'half2'
34void half2_4()                 { half2 h;        half    v = h[4]; }
35                                                               ^
36error: 23: index 1000000000 out of range for 'half2'
37void half2_huge()              { half2 h;        half    v = h[1000000000]; }
38                                                               ^^^^^^^^^^
39error: 25: index -1 out of range for 'half2'
40void half2_neg1_constidx()     { half2 h;        const int INDEX = -1;         half v = h[INDEX]; }
41                                                                                          ^^^^^
42error: 28: index 2 out of range for 'half2'
43void half2_2_constidx()        { half2 h;        const int INDEX = 2;          half v = h[INDEX]; }
44                                                                                          ^^^^^
45error: 29: index 1000000000 out of range for 'half2'
46void half2_huge_constidx()     { half2 h;        const int INDEX = 1000000000; half v = h[INDEX]; }
47                                                                                          ^^^^^
48error: 31: index -1 out of range for 'half3'
49void half3_neg1_constidx()     { half3 h;        const int INDEX = -1;         half v = h[INDEX]; }
50                                                                                          ^^^^^
51error: 35: index 3 out of range for 'half3'
52void half3_3_constidx()        { half3 h;        const int INDEX = 3;          half v = h[INDEX]; }
53                                                                                          ^^^^^
54error: 36: index 1000000000 out of range for 'half3'
55void half3_huge_constidx()     { half3 h;        const int INDEX = 1000000000; half v = h[INDEX]; }
56                                                                                          ^^^^^
57error: 38: index -1 out of range for 'half4'
58void half4_neg1_constidx()     { half4 h;        const int INDEX = -1;         half v = h[INDEX]; }
59                                                                                          ^^^^^
60error: 43: index 4 out of range for 'half4'
61void half4_4_constidx()        { half4 h;        const int INDEX = 4;          half v = h[INDEX]; }
62                                                                                          ^^^^^
63error: 44: index 1000000000 out of range for 'half4'
64void half4_huge_constidx()     { half4 h;        const int INDEX = 1000000000; half v = h[INDEX]; }
65                                                                                          ^^^^^
6621 errors
67