Sign in
dawn
/
dawn
/
c90bc4d50b70f2b9f01bf98e15056e563c43bee8
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
ptr.wgsl.expected.msl
blob: b19f6ec40679876c681789fe7e54ba32465d43a9 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
int
func
(
int
value
,
thread
int
*
const
pointer
)
{
return
as_type
<int>
((
as_type
<uint>
(
value
)
+
as_type
<uint>
((*
pointer
))));
}
kernel
void
v
()
{
int
i
=
123
;
int
const
r
=
func
(
i
,
(&
i
));
}