8c595fed7c
'in' variables without locations aren't allowed. Use uniforms instead. Bug: skia:11738 Change-Id: Ic066106deb7409cff154b4be7cfb3e03a7025c7d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/385000 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
uniform half2 h2;
|
|
uniform half3 h3;
|
|
uniform half4 h4;
|
|
uniform float2 f2;
|
|
uniform float3 f3;
|
|
uniform float4 f4;
|
|
void main() {
|
|
sk_FragColor = half4(outerProduct(f2, f2)[1].xyyy);
|
|
sk_FragColor = half4(outerProduct(f3, f3)[2].xyzz);
|
|
sk_FragColor = half4(outerProduct(f4, f4)[3]);
|
|
sk_FragColor = half4(outerProduct(f3, f2)[1].xyzz);
|
|
sk_FragColor = half4(outerProduct(f2, f3)[2].xyyy);
|
|
sk_FragColor = half4(outerProduct(f4, f2)[1]);
|
|
sk_FragColor = half4(outerProduct(f2, f4)[3].xyyy);
|
|
sk_FragColor = half4(outerProduct(f4, f3)[2]);
|
|
sk_FragColor = half4(outerProduct(f3, f4)[3].xyzz);
|
|
sk_FragColor = outerProduct(h2, h2)[1].xyyy;
|
|
sk_FragColor = outerProduct(h3, h3)[2].xyzz;
|
|
sk_FragColor = outerProduct(h4, h4)[3];
|
|
sk_FragColor = outerProduct(h3, h2)[1].xyzz;
|
|
sk_FragColor = outerProduct(h2, h3)[2].xyyy;
|
|
sk_FragColor = outerProduct(h4, h2)[1];
|
|
sk_FragColor = outerProduct(h2, h4)[3].xyyy;
|
|
sk_FragColor = outerProduct(h4, h3)[2];
|
|
sk_FragColor = outerProduct(h3, h4)[3].xyzz;
|
|
}
|