Sign in
dawn
/
dawn
/
3e01ddbb5c7e8f0bc03965a1497a6c7276e1ed24
/
.
/
test
/
tint
/
ptr_sugar
/
struct.wgsl.expected.msl
blob: 1b6ebcd6ebd20bd111c63b443a9649eeeceee59b [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
struct
S
{
int
x
;
};
void
deref
()
{
S a
=
{};
int
b
=
a
.
x
;
a
.
x
=
42
;
}
void
no_deref
()
{
S a
=
{};
int
b
=
a
.
x
;
a
.
x
=
42
;
}
kernel
void
tint_symbol
()
{
deref
();
no_deref
();
return
;
}