Sign in
dawn
/
dawn
/
f76df6beee5cc510d5f7101560b63e418d1dbbf4
/
.
/
test
/
tint
/
ptr_sugar
/
compound_assign_member.wgsl
blob: 2785bd54c43af6f57056e69bde4d91100e75998e [
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
();
}