Sign in
skia
/
skia
/
3658238492093ca6039e939c34e8e721f5cbbc85
/
.
/
resources
/
sksl
/
inliner
/
InlinerUsesTempVarForMultipleReturns.sksl
blob: d59c36f450072524329ccac74da5e1888d4350e8 [
file
] [
log
] [
blame
]
/*#pragma settings Default*/
uniform half4 colorWhite
,
colorGreen
,
colorRed
;
inline
half4
MakeTempVar
(
half4 c
)
{
if
(
c
.
rg
==
c
.
ba
)
{
return
colorGreen
;
}
else
{
return
colorRed
;
}
}
half4 main
(
float2 coords
)
{
return
MakeTempVar
(
colorWhite
);
}