010c0ec061
Boolean vector expressions already allowed swizzles (see the SwizzleBoolConstants.sksl test), but scalars had been inadvertently disallowed. Change-Id: I89e7139db50981f0ee1a9a5086b02603e57f967d Bug: skia:12195 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/427196 Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
12 lines
261 B
GLSL
12 lines
261 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform float unknownInput;
|
|
vec4 main() {
|
|
bool b = bool(unknownInput);
|
|
bvec4 b4 = bvec4(b);
|
|
b4 = bvec4(bvec2(b), false, true);
|
|
b4 = bvec4(false, b, true, false);
|
|
b4 = bvec4(false, b, false, b);
|
|
return vec4(b4);
|
|
}
|