Sign in
dawn
/
tint
/
723f999ac279826ea2ac412618372f2f1053a742
/
.
/
test
/
expressions
/
index
/
let
/
var
/
literal
/
array.wgsl.expected.msl
blob: 808c68843fc41ff042e7c4cc7fcd05abd47618e2 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
struct
tint_array_wrapper
{
int
arr
[
8
];
};
int
f
()
{
tint_array_wrapper a
=
{.
arr
={
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
}};
int
const
i
=
1
;
return
a
.
arr
[
i
];
}