49c417621b
The tests now check bool4-mat2 conversions, which fortunately do work, and the vector-to-matrix tests include int and bool conversions as well. Change-Id: I971271838a93081b9258deb7c1d13b7732fb2440 Bug: skia:12067 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/426757 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
14 lines
443 B
GLSL
14 lines
443 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorGreen;
|
|
uniform vec4 colorRed;
|
|
uniform mat2 testMatrix2x2;
|
|
vec4 main() {
|
|
bool ok = true;
|
|
ok = ok && vec4(testMatrix2x2) == vec4(1.0, 2.0, 3.0, 4.0);
|
|
ok = ok && vec4(testMatrix2x2) == vec4(1.0, 2.0, 3.0, 4.0);
|
|
ok = ok && ivec4(vec4(testMatrix2x2)) == ivec4(1, 2, 3, 4);
|
|
ok = ok && bvec4(vec4(testMatrix2x2)) == bvec4(true, true, true, true);
|
|
return ok ? colorGreen : colorRed;
|
|
}
|