Sign in
skia
/
skia
/
64c907c0529f233bf0050f66c6af5f744e2cba0c
/
.
/
resources
/
sksl
/
inliner
/
IfBodyMustBeInlinedIntoAScope.sksl
blob: 4a93f05a6c96c8e2083632d68a8e4b4480266ce8 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
,
colorRed
;
inline
half4 ifBody
()
{
half4 x
=
colorGreen
;
return
x
;
}
half4 main
(
float2 coords
)
{
half4 c
=
colorRed
;
if
(
colorGreen
.
g
==
1
)
c
=
ifBody
();
return
c
;
}