Sign in
◑
Theme
dawn
/
dawn
/
074d0e5ea441d1fcc24977948ec00c32bda379f2
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
function
/
struct_in_array.wgsl.expected.msl
blob: 789be62a4ed163895f35fc198e4464e0dfe24d87 [
file
]
#include
<metal_stdlib>
using
namespace
metal
;
struct
str
{
int
i
;
};
str func
(
thread str
*
const
pointer
)
{
return
(*
pointer
);
}
[[
max_total_threads_per_threadgroup
(
1
)]]
kernel
void
v
()
{
array
<
str
,
4
>
F
=
{};
str
const
r
=
func
((&
F
[
2
]));
}