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