Sign in
android
/
platform
/
external
/
skia
/
92748af1a5
/
.
/
tests
/
sksl
/
inliner
/
SwitchWithoutReturnInsideCanBeInlined.glsl
blob: 7291cba069f9981f2db438d08ae79b3d1ba8c07f [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform
int
value
;
vec4 switchy
(
int
v
)
{
vec4 result
=
vec4
(
1.0
);
switch
(
v
)
{
case
0
:
result
=
vec4
(
0.5
);
}
return
result
;
}
void
main
()
{
sk_FragColor
=
switchy
(
value
);
}