Sign in
skia
/
skia
/
9f39daff8fd5e924afa750c2daf25fd16f107c2d
/
.
/
tests
/
sksl
/
inliner
/
SwitchWithCastCanBeInlined.glsl
blob: a069d930744d10c0e46b6813b238db25bb414211 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform vec4 color
;
void
main
()
{
vec4 _0_result
;
switch
(
int
(
color
.
x
))
{
case
1
:
_0_result
=
color
.
yyyy
;
break
;
default
:
_0_result
=
color
.
zzzz
;
break
;
}
sk_FragColor
=
_0_result
;
}