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