Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
shared
/
Structs.glsl
blob: e2bdae8d3ceaa2bab31b194a46f9fd6b6e3d1f30 [
file
] [
log
] [
blame
]
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
;
}