skia2/tests/sksl/glsl/SwizzleScalar.sksl
John Stiles 7f6378f7f8 Migrate swizzle tests to golden SkSL files.
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>
2020-09-16 18:16:07 +00:00

8 lines
188 B
Plaintext

void main() {
half x = half(sqrt(4));
sk_FragColor = x.xx01;
sk_FragColor = half(sqrt(4)).xx01;
sk_FragColor = half(sqrt(4)).0x01;
sk_FragColor = half(sqrt(4)).0x0x;
}