Sign in
skia
/
skia
/
3658238492093ca6039e939c34e8e721f5cbbc85
/
.
/
resources
/
sksl
/
inliner
/
InlineWithUnmodifiedArgument.sksl
blob: d454d53bee581c8b140eee1fa0c3985a696c7108 [
file
] [
log
] [
blame
]
inline
half square
(
half x
)
{
return
x
*
x
;
}
half4 main
(
float2 coords
)
{
half one
=
1
;
half4 result
=
half4
(
123
);
result
.
r
=
square
(
0
);
result
.
b
=
square
(
result
.
r
);
result
.
g
=
square
(
1
);
result
.
a
=
square
(
one
);
return
result
;
}