adb3eac15c
An assignment like `mediump int a[2] = myHighpIntArray;` should succeed now that the previous CLs have landed; originally, this would have caused a type-mismatch error. Change-Id: I86ffe6a21d0c7fbe289eef95aebc2605412566aa Bug: skia:12248 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/437740 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
25 lines
679 B
Plaintext
25 lines
679 B
Plaintext
/*#pragma settings NoES2Restrictions*/
|
|
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
half4 main(float2 coords) {
|
|
highp int i2[2] = int [2](1, 2);
|
|
mediump int s2[2] = int [2](1, 2);
|
|
highp float f2[2] = float [2](1, 2);
|
|
mediump float h2[2] = float [2](1, 2);
|
|
|
|
i2 = s2;
|
|
s2 = i2;
|
|
f2 = h2;
|
|
h2 = f2;
|
|
|
|
const highp int ci2[2] = int [2](1, 2);
|
|
const mediump int cs2[2] = int [2](1, 2);
|
|
const highp float cf2[2] = float [2](1, 2);
|
|
const mediump float ch2[2] = float [2](1, 2);
|
|
|
|
return (i2 == s2 && f2 == h2 && ci2 == cs2 && cf2 == ch2 && i2 == cs2 && h2 == cf2)
|
|
? colorGreen
|
|
: colorRed;
|
|
}
|