Sign in
dawn
/
dawn
/
cdfb6e78a88fb970a83c52edd1db060b65a56e44
/
.
/
test
/
tint
/
ptr_sugar
/
compound_assign_member.wgsl.expected.wgsl
blob: 3a01d238720d4c1e6481a872370590d9da6d10b8 [
file
] [
log
] [
blame
]
fn deref
()
{
var
a
:
vec3
<i32>
;
let
p
=
&(
a
);
(*(
p
)).
x
+=
42
;
}
fn no_deref
()
{
var
a
:
vec3
<i32>
;
let
p
=
&(
a
);
p
.
x
+=
42
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
deref
();
no_deref
();
}