Sign in
skia
/
skia
/
3658238492093ca6039e939c34e8e721f5cbbc85
/
.
/
resources
/
sksl
/
inliner
/
StructsCanBeInlinedSafely.sksl
blob: 425fcf4e9bfd2c1d7054cbbd6e59712c42717f62 [
file
] [
log
] [
blame
]
struct
Color
{
half red
;
half green
;
half blue
;
half alpha
;
};
half4 helper
()
{
Color
c
;
c
.
red
=
0.0
;
c
.
green
=
1.0
;
c
.
blue
=
0.0
;
c
.
alpha
=
1.0
;
return
half4
(
c
.
red
,
c
.
green
,
c
.
blue
,
c
.
alpha
);
}
half4 main
(
float2 coords
)
{
return
helper
();
}