Sign in
dawn
/
tint
/
a52324fde1d7c457c2755f9f88e1ef72d7200843
/
.
/
test
/
ptr_ref
/
load
/
local
/
ptr_storage.wgsl.expected.wgsl
blob: b88f09f6ea3c913694935758b32f8c5223011fbc [
file
] [
log
] [
blame
]
[[
block
]]
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
);
}