7f6378f7f8
This simplifies life when revising the swizzle logic. Change-Id: I7fc63c0cc845c4741c17c82b3078040264b61ba0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317379 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
30 lines
863 B
Plaintext
30 lines
863 B
Plaintext
void main() {
|
|
half4 v = half4(half(sqrt(1)));
|
|
sk_FragColor = half4(v.x, 1, 1, 1);
|
|
sk_FragColor = half4(v.xy, 1, 1);
|
|
sk_FragColor = half4(v.x1, 1, 1);
|
|
sk_FragColor = half4(v.0y, 1, 1);
|
|
sk_FragColor = half4(v.xyz, 1);
|
|
sk_FragColor = half4(v.xy1, 1);
|
|
sk_FragColor = half4(v.x0z, 1);
|
|
sk_FragColor = half4(v.x10, 1);
|
|
sk_FragColor = half4(v.1yz, 1);
|
|
sk_FragColor = half4(v.0y1, 1);
|
|
sk_FragColor = half4(v.11z, 1);
|
|
sk_FragColor = v.xyzw;
|
|
sk_FragColor = v.xyz1;
|
|
sk_FragColor = v.xy0w;
|
|
sk_FragColor = v.xy10;
|
|
sk_FragColor = v.x1zw;
|
|
sk_FragColor = v.x0z1;
|
|
sk_FragColor = v.x11w;
|
|
sk_FragColor = v.x101;
|
|
sk_FragColor = v.1yzw;
|
|
sk_FragColor = v.0yz1;
|
|
sk_FragColor = v.0y1w;
|
|
sk_FragColor = v.1y11;
|
|
sk_FragColor = v.00zw;
|
|
sk_FragColor = v.00z1;
|
|
sk_FragColor = v.011w;
|
|
}
|