Sign in
dawn
/
dawn
/
16f0b93d65f528f9d15ded83821e5b773c2e9464
/
.
/
test
/
tint
/
ptr_sugar
/
struct.wgsl.expected.dxc.hlsl
blob: 628808f4178a0fa124982cf188acc845e60b5cb1 [
file
] [
log
] [
blame
]
struct
S
{
int
x
;
};
void
deref
()
{
S a
=
(
S
)
0
;
int
b
=
a
.
x
;
a
.
x
=
42
;
}
void
no_deref
()
{
S a
=
(
S
)
0
;
int
b
=
a
.
x
;
a
.
x
=
42
;
}
[
numthreads
(
1
,
1
,
1
)]
void
main
()
{
deref
();
no_deref
();
return
;
}