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