Sign in
dawn
/
dawn
/
09c49b34d9d981abd3baa567c3633bfa4e667822
/
.
/
test
/
ptr_ref
/
load
/
local
/
ptr_storage.wgsl.expected.wgsl
blob: 13f8743a0fb10accbc944a44306f5552810c9f9c [
file
] [
log
] [
blame
]
struct
S
{
a
:
i32
;
};
[[
group
(
0
),
binding
(
0
)]]
var
<
storage
,
read_write
>
v
:
S
;
[[
stage
(
compute
),
workgroup_size
(
1
)]]
fn main
()
{
let
p
:
ptr
<
storage
,
i32
,
read_write
>
=
&(
v
.
a
);
let
use
:
i32
=
(*(
p
)
+
1
);
}