Sign in
dawn
/
dawn
/
de601a8efdbbdeb56c97c8d44bc34bba63be4b2c
/
.
/
test
/
tint
/
ptr_sugar
/
struct.wgsl.expected.wgsl
blob: e01aecd1d443487f740d6232abb3f050f08452c5 [
file
] [
log
] [
blame
]
struct
S
{
x
:
i32
,
}
fn deref
()
{
var
a
:
S
;
let
p
=
&(
a
);
var
b
=
(*(
p
)).
x
;
(*(
p
)).
x
=
42
;
}
fn no_deref
()
{
var
a
:
S
;
let
p
=
&(
a
);
var
b
=
p
.
x
;
p
.
x
=
42
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
deref
();
no_deref
();
}