Sign in
dawn
/
dawn
/
be656f7984a48e3c4e9a3c9dcc0ba7bbdc3da278
/
.
/
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
];
}