xref: /aosp_15_r20/external/skia/tests/sksl/errors/MatrixIndexOutOfRange.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 1: index -1 out of range for 'half3x3'
4void half3x3_neg1()            { half3x3 m;  half3   v = m[-1]; }
5                                                           ^^
6error: 5: index 3 out of range for 'half3x3'
7void half3x3_3()               { half3x3 m;  half3   v = m[3]; }
8                                                           ^
9error: 6: index 4 out of range for 'half3x3'
10void half3x3_4()               { half3x3 m;  half3   v = m[4]; }
11                                                           ^
12error: 7: index 1000000000 out of range for 'half3x3'
13void half3x3_huge()            { half3x3 m;  half3   v = m[1000000000]; }
14                                                           ^^^^^^^^^^
15error: 9: index -1 out of range for 'half3x3'
16void half3x3_neg1_constidx()   { half3x3 m;  const int INDEX = -1;         half3 v = m[INDEX]; }
17                                                                                       ^^^^^
18error: 13: index 3 out of range for 'half3x3'
19void half3x3_3_constidx()      { half3x3 m;  const int INDEX = 3;          half3 v = m[INDEX]; }
20                                                                                       ^^^^^
21error: 14: index 4 out of range for 'half3x3'
22void half3x3_4_constidx()      { half3x3 m;  const int INDEX = 4;          half3 v = m[INDEX]; }
23                                                                                       ^^^^^
24error: 15: index 1000000000 out of range for 'half3x3'
25void half3x3_huge_constidx()   { half3x3 m;  const int INDEX = 1000000000; half3 v = m[INDEX]; }
26                                                                                       ^^^^^
278 errors
28