xref: /aosp_15_r20/external/skia/resources/sksl/intrinsics/CrossNoInline.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker/*#pragma settings NoInline*/
2*c8dee2aaSAndroid Build Coastguard Worker
3*c8dee2aaSAndroid Build Coastguard Workeruniform half2  ah, bh;
4*c8dee2aaSAndroid Build Coastguard Workeruniform float2 af, bf;
5*c8dee2aaSAndroid Build Coastguard Workervoid main() {
6*c8dee2aaSAndroid Build Coastguard Worker    sk_FragColor.x = cross_length_2d(ah, bh);
7*c8dee2aaSAndroid Build Coastguard Worker    sk_FragColor.y = half(cross_length_2d(af, bf));
8*c8dee2aaSAndroid Build Coastguard Worker}
9