Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
639e812d9f49937abf5aa2bad6625f1081e5806e
/
.
/
tests
/
sksl
/
shared
/
SwitchWithFallthrough.glsl
blob: 53718401cd8d0563f29b82268bc9be6489049fc2 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform
float
unknownInput
;
void
main
()
{
float
value
=
0.0
;
switch
(
int
(
unknownInput
))
{
case
0
:
value
=
0.0
;
case
1
:
value
=
1.0
;
}
sk_FragColor
=
vec4
(
value
);
}