skia2/resources/sksl/errors/MatrixIndexOutOfRange.sksl
John Stiles a456175a07 Add expected errors to every test file.
This was (crudely) automated with shell scripts:
http://go/paste/5484300603490304

Change-Id: Ic9e1c93112772d303d1158eb26d995f27b439eba
Bug: skia:12665
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/505637
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-02-08 18:20:25 +00:00

51 lines
2.7 KiB
Plaintext

void half2x4_neg1() { half2x4 m; half4 v = m[-1]; }
void half2x4_0() { half2x4 m; half4 v = m[0]; }
void half2x4_1() { half2x4 m; half4 v = m[1]; }
void half2x4_2() { half2x4 m; half4 v = m[2]; }
void half2x4_3() { half2x4 m; half4 v = m[3]; }
void half2x4_4() { half2x4 m; half4 v = m[4]; }
void half2x4_huge() { half2x4 m; half4 v = m[1000000000]; }
void half3x3_neg1() { half3x3 m; half3 v = m[-1]; }
void half3x3_0() { half3x3 m; half3 v = m[0]; }
void half3x3_1() { half3x3 m; half3 v = m[1]; }
void half3x3_2() { half3x3 m; half3 v = m[2]; }
void half3x3_3() { half3x3 m; half3 v = m[3]; }
void half3x3_4() { half3x3 m; half3 v = m[4]; }
void half3x3_huge() { half3x3 m; half3 v = m[1000000000]; }
void half4x2_neg1() { half4x2 m; half2 v = m[-1]; }
void half4x2_0() { half4x2 m; half2 v = m[0]; }
void half4x2_1() { half4x2 m; half2 v = m[1]; }
void half4x2_2() { half4x2 m; half2 v = m[2]; }
void half4x2_3() { half4x2 m; half2 v = m[3]; }
void half4x2_4() { half4x2 m; half2 v = m[4]; }
void half4x2_huge() { half4x2 m; half2 v = m[1000000000]; }
void half4_neg1_constidx() { half3x3 m; const int INDEX = -1; half3 v = m[INDEX]; }
void half4_0_constidx() { half3x3 m; const int INDEX = 0; half3 v = m[INDEX]; }
void half4_1_constidx() { half3x3 m; const int INDEX = 1; half3 v = m[INDEX]; }
void half4_2_constidx() { half3x3 m; const int INDEX = 2; half3 v = m[INDEX]; }
void half4_3_constidx() { half3x3 m; const int INDEX = 3; half3 v = m[INDEX]; }
void half4_4_constidx() { half3x3 m; const int INDEX = 4; half3 v = m[INDEX]; }
void half4_huge_constidx() { half3x3 m; const int INDEX = 1000000000; half3 v = m[INDEX]; }
/*%%*
index -1 out of range for 'half2x4'
index 2 out of range for 'half2x4'
index 3 out of range for 'half2x4'
index 4 out of range for 'half2x4'
index 1000000000 out of range for 'half2x4'
index -1 out of range for 'half3x3'
index 3 out of range for 'half3x3'
index 4 out of range for 'half3x3'
index 1000000000 out of range for 'half3x3'
index -1 out of range for 'half4x2'
index 4 out of range for 'half4x2'
index 1000000000 out of range for 'half4x2'
index -1 out of range for 'half3x3'
index 3 out of range for 'half3x3'
index 4 out of range for 'half3x3'
index 1000000000 out of range for 'half3x3'
*%%*/