Sign in
dawn
/
tint
/
7103f51603dcfd73f9fff528c87deb91679d579f
/
.
/
test
/
expressions
/
swizzle
/
write
/
packed_vec3
/
u32.wgsl.expected.msl
blob: b12b4609772a7d3e76951ccdac6bb01f3b5f3eb6 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
struct
S
{
/* 0x0000 */
packed_uint3 v
;
/* 0x000c */
int8_t
tint_pad
[
4
];
};
void
f
(
device S
&
U
)
{
U
.
v
=
uint3
(
1u
,
2u
,
3u
);
U
.
v
[
0
]
=
1u
;
U
.
v
[
1
]
=
2u
;
U
.
v
[
2
]
=
3u
;
}