Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
third_party
/
skia_next
/
third_party
/
skia
/
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
);
}