Sign in
dawn
/
dawn
/
main
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
function
/
i32_in_struct.wgsl.expected.msl
blob: 446f1bf22b7b15e7a67b583fad840d3c63ea383b [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
struct
str
{
int
i
;
};
int
func
(
thread
int
*
const
pointer
)
{
return
(*
pointer
);
}
[[
max_total_threads_per_threadgroup
(
1
)]]
kernel
void
v
()
{
str F
=
{};
int
const
r
=
func
((&
F
.
i
));
}