Sign in
dawn
/
tint
/
4e6e1138160a7a003c5d09e6d6e9ba45dcb50347
/
.
/
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
);
}