skia2/tests/sksl/shared/SwizzleScalar.glsl
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

11 lines
259 B
GLSL

out vec4 sk_FragColor;
uniform float unknownInput;
vec4 main() {
vec4 h4 = vec4(unknownInput);
h4 = vec4(vec2(unknownInput), 0.0, 1.0);
h4 = vec4(0.0, unknownInput, 1.0, 0.0);
h4 = vec4(0.0, unknownInput, 0.0, unknownInput);
return h4;
}