Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
8e369b0a5a10b4549d92268072ef922cb52ee046
/
.
/
resources
/
sksl
/
shared
/
Switch.sksl
blob: deabebc64e6909e9593392994fe9f5d2906a080e [
file
] [
log
] [
blame
]
uniform
float
unknownInput
;
void
main
()
{
// Basic switch test.
half value
;
switch
(
int
(
unknownInput
))
{
case
0
:
value
=
0.0
;
break
;
case
1
:
value
=
1.0
;
break
;
default
:
value
=
2.0
;
}
sk_FragColor
=
value
.
xxxx
;
}