Sign in
skia
/
skia
/
16a97bb2cb446f258e897c6fdf9f72ff1c5c1fc7
/
.
/
resources
/
sksl
/
shared
/
ArrayConstructors.sksl
blob: 6ea072a65f4b4bc7ed092ddb06b2629e129f1f01 [
file
] [
log
] [
blame
]
float
test1
[
4
]
=
float
[
4
](
1
,
2
,
3
,
4
);
float2 test2
[
2
]
=
float2
[
2
](
float2
(
1
,
2
),
float2
(
3
,
4
));
float4x4 test3
[
1
]
=
float4x4
[
1
](
float4x4
(
16
));
void
main
()
{
sk_FragColor
.
r
=
half
(
test1
[
0
]
+
test2
[
0
].
x
+
test3
[
0
][
0
][
0
]);
}