bfc9be0f77
This will allow us to load these inputs for unit testing in `dm`. Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5 Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
17 lines
702 B
GLSL
17 lines
702 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
void main() {
|
|
mat3x4 z = mat2x4(1.0) * mat3x2(1.0, 0.0, 0.0, 1.0, 2.0, 2.0);
|
|
vec3 v1 = mat3(1.0) * vec3(2.0);
|
|
vec3 v2 = vec3(2.0) * mat3(1.0);
|
|
sk_FragColor = vec4(z[0].x, v1 + v2);
|
|
mat2 m3 = mat2(1.0, 2.0, 3.0, 4.0);
|
|
m3 *= mat2(1.0);
|
|
mat2 m5 = mat2(mat2(1.0, 2.0, 3.0, 4.0)[0].x);
|
|
mat2 m6 = mat2(1.0, 2.0, 3.0, 4.0);
|
|
m6 += m5;
|
|
mat4 m11 = mat4(2.0);
|
|
m11 -= mat4(1.0);
|
|
sk_FragColor = vec4((((((((((mat2(1.0, 2.0, 3.0, 4.0)[0].x + mat2(vec4(0.0))[0].x) + m3[0].x) + mat2(1.0)[0].x) + m5[0].x) + m6[0].x) + mat2(5.0, 6.0, 7.0, 8.0)[0].x) + mat3x2(1.0, 2.0, 3.0, 4.0, 5.0, 6.0)[0].x) + mat3(1.0)[0].x) + mat4(1.0)[0].x) + m11[0].x);
|
|
}
|