Sign in
skia
/
skia
/
8ced56f05f2cb947551d9c70f6a43c1eff32686f
/
.
/
resources
/
sksl
/
shared
/
Switch.sksl
blob: c15e5976355db03ff0db1a25f3718022d1fb9e5d [
file
] [
log
] [
blame
]
void
main
()
{
// Basic switch test.
float
x
;
switch
(
int
(
sqrt
(
1
)))
{
case
0
:
x
=
0.0
;
break
;
case
1
:
x
=
1.0
;
break
;
default
:
x
=
2.0
;
}
sk_FragColor
=
half4
(
half
(
x
));
}