Sign in
dawn
/
dawn
/
6ab5d3c1519e3b8d76598a20a5fdc3bb84d35fd2
/
.
/
test
/
tint
/
expressions
/
swizzle
/
write
/
vec3
/
f16.wgsl.expected.msl
blob: 87ad75db7017061992d310cb0b29b2757e36cfa3 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
struct
S
{
half3 v
;
};
void
f
()
{
thread S tint_symbol
=
{};
tint_symbol
.
v
=
half3
(
1.0h
,
2.0h
,
3.0h
);
tint_symbol
.
v
[
0
]
=
1.0h
;
tint_symbol
.
v
[
1
]
=
2.0h
;
tint_symbol
.
v
[
2
]
=
3.0h
;
}