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