Sign in
dawn
/
tint
/
ba1a8f8d05e97687fb3a3fd1d1c250af7af6d22b
/
.
/
test
/
expressions
/
swizzle
/
write
/
vec3
/
i32.wgsl.expected.msl
blob: bbd4748e6032f97310f4e992a4eef70a920c5830 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
struct
S
{
int3 v
;
};
void
f
(
thread S
*
const
tint_symbol
)
{
(*(
tint_symbol
)).
v
=
int3
(
1
,
2
,
3
);
(*(
tint_symbol
)).
v
[
0
]
=
1
;
(*(
tint_symbol
)).
v
[
1
]
=
2
;
(*(
tint_symbol
)).
v
[
2
]
=
3
;
}