7f56b41fc0
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>
12 lines
233 B
GLSL
12 lines
233 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform float unknownInput;
|
|
vec4 main() {
|
|
int i = int(unknownInput);
|
|
ivec4 i4 = ivec4(i);
|
|
i4 = ivec4(ivec2(i), 0, 1);
|
|
i4 = ivec4(0, i, 1, 0);
|
|
i4 = ivec4(0, i, 0, i);
|
|
return vec4(i4);
|
|
}
|