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