diff options
author | John Stiles <johnstiles@google.com> | 2022-03-22 09:06:12 -0400 |
---|---|---|
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | 2022-03-24 02:09:39 +0000 |
commit | a7bf23d17e39895bad0fa690c4ac464e1cb84513 (patch) | |
tree | 5cf437112405679050e4616d0d3f993a43fdc3a9 /resources/sksl/errors/MatrixIndexOutOfRangeES3.sksl | |
parent | 843619630a0f4126b0572eb093cfaeac4121cd81 (diff) | |
download | skia-a7bf23d17e39895bad0fa690c4ac464e1cb84513.tar.gz |
Rename ES2 error tests from 'H' through 'M' to .rts.
In a few cases, this involved splitting a test into two (an ES2-
compatible portion and a ES3+ portion).
Bug: skia:13042
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
Change-Id: I3a776846a3d7d19cb19fa68c67842f7dbafcb420
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/524099
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'resources/sksl/errors/MatrixIndexOutOfRangeES3.sksl')
-rw-r--r-- | resources/sksl/errors/MatrixIndexOutOfRangeES3.sksl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/resources/sksl/errors/MatrixIndexOutOfRangeES3.sksl b/resources/sksl/errors/MatrixIndexOutOfRangeES3.sksl new file mode 100644 index 0000000000..da8a0910e6 --- /dev/null +++ b/resources/sksl/errors/MatrixIndexOutOfRangeES3.sksl @@ -0,0 +1,26 @@ +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 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]; } + +/*%%* +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 'half4x2' +index 4 out of range for 'half4x2' +index 1000000000 out of range for 'half4x2' +*%%*/ |