Sign in
skia
/
skia
/
2a07fd68ebdd3366c24a51dae1bbd7a0fdbbfccc
/
.
/
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
;
}