Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
shared
/
SwizzleScalarBool.glsl
blob: 230d5522787eee3d6fba6b2628bfeaa3886477fc [
file
] [
log
] [
blame
]
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
);
}