Sign in
skia
/
skia
/
d7e2d5cadfebd26ad575f703af3c342dd4dd41f6
/
.
/
resources
/
sksl
/
inliner
/
IfWithReturnsCanBeInlined.sksl
blob: fc534282182ccaa29d7537ed8eeaa7918cd78af7 [
file
] [
log
] [
blame
]
uniform half4 color
;
half4 branchy
(
half4 c
)
{
if
(
c
.
z
==
c
.
w
)
return
c
.
yyyy
;
else
return
c
.
zzzz
;
}
void
main
()
{
sk_FragColor
=
branchy
(
color
);
}