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