Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
2d3f5e8f255bf57d84171fbccf1736012b194a3b
/
.
/
resources
/
sksl
/
shared
/
StructArrayFollowedByScalar.sksl
blob: 67bf3556316a11754bc1b3b582c1408926491607 [
file
] [
log
] [
blame
]
struct
S
{
half rgb
[
3
],
a
;
};
half4 main
(
float2 coords
)
{
S s
;
s
.
rgb
[
0
]
=
0
;
s
.
rgb
[
1
]
=
1
;
s
.
rgb
[
2
]
=
0
;
s
.
a
=
1
;
return
half4
(
s
.
rgb
[
0
],
s
.
rgb
[
1
],
s
.
rgb
[
2
],
s
.
a
);
}