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