Sign in
skia
/
skia
/
3658238492093ca6039e939c34e8e721f5cbbc85
/
.
/
resources
/
sksl
/
inliner
/
SwitchWithoutReturnInsideCanBeInlined.sksl
blob: ee5afb83b13d6189573f1a9f68db3a886e266345 [
file
] [
log
] [
blame
]
uniform
int
value
;
inline
half4 switchy
(
int
v
)
{
half4 result
=
half4
(
1.0
);
switch
(
v
)
{
case
0
:
result
=
half4
(
0.5
);
}
return
result
;
}
void
main
()
{
sk_FragColor
=
switchy
(
value
);
}