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