Sign in
skia
/
skia
/
3658238492093ca6039e939c34e8e721f5cbbc85
/
.
/
resources
/
sksl
/
inliner
/
IfElseBodyMustBeInlinedIntoAScope.sksl
blob: 49772366ee62fd62e858b771cfa57b82f28965e2 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
,
colorRed
;
inline
half4 elseBody
()
{
half4 x
=
colorGreen
;
return
x
;
}
half4 main
(
float2 coords
)
{
half4 c
=
colorRed
;
if
(
colorGreen
.
g
==
0
)
;
else
c
=
elseBody
();
return
c
;
}