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