Sign in
skia
/
skia
/
628638b1f9b3dc72b1823616086910cf992bf24a
/
.
/
resources
/
sksl
/
shared
/
SwitchWithFallthrough.sksl
blob: 1058df5569a3df75640c074d4169f0c374d5aaa8 [
file
] [
log
] [
blame
]
uniform
float
unknownInput
;
void
main
()
{
half value
=
0.0
;
switch
(
int
(
unknownInput
))
{
case
0
:
value
=
0.0
;
case
1
:
value
=
1.0
;
}
sk_FragColor
=
value
.
xxxx
;
}