Sign in
dawn
/
dawn
/
c2f6f2f5d481a724aa1a34e0c756a277aefb7bef
/
.
/
test
/
tint
/
ptr_sugar
/
struct.wgsl
blob: 1c6c7fed4498d41393b6237aac84afdedb4d1deb [
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
();
}