Sign in
cobalt
/
cobalt.git
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
skia
/
tests
/
sksl
/
shared
/
Structs.glsl
blob: e2bdae8d3ceaa2bab31b194a46f9fd6b6e3d1f30 [
file
]
out
vec4 sk_FragColor
;
struct
A
{
int
x
;
int
y
;
};
A a1
;
struct
B
{
float
x
;
float
y
[
2
];
A z
;
};
B b1
;
void
main
()
{
a1
.
x
=
0
;
b1
.
x
=
0.0
;
sk_FragColor
.
x
=
float
(
a1
.
x
)
+
b1
.
x
;
}