Sign in
skia
/
skia
/
fb0440e5bcb6a4e9d1662b042ddf0c25d40ee093
/
.
/
tests
/
sksl
/
shared
/
Switch.glsl
blob: 39b48e2292c288d56c5f4bb5741d1f2d0afbc89f [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform
float
unknownInput
;
void
main
()
{
float
value
;
switch
(
int
(
unknownInput
))
{
case
0
:
value
=
0.0
;
break
;
case
1
:
value
=
1.0
;
break
;
default
:
value
=
2.0
;
}
sk_FragColor
=
vec4
(
value
);
}