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