skia2/resources/sksl/shared/SwizzleScalarBool.sksl
John Stiles 7f56b41fc0 Add scalar-swizzling tests for int and bool types.
Boolean scalar-swizzling is currently not working.

Change-Id: Icd965e4b64a12311d098168f65622110d5fb3437
Bug: skia:12195
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/427038
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-07-12 19:54:40 +00:00

12 lines
193 B
Plaintext

uniform half unknownInput; // 1
half4 main(float2 coords) {
bool b = bool(unknownInput);
bool4 b4 = b.xxxx;
b4 = b.xx01;
b4 = b.0x10;
b4 = b.0x0x;
return half4(b4);
}