Sign in
dawn
/
tint
/
b79f51ece3d42e96ea4952b9b1469b8d0563f337
/
.
/
test
/
expressions
/
swizzle
/
write
/
vec3
/
f32.wgsl.expected.msl
blob: 17624cfcf939e4a0967b20e14bb59493dbad4b86 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
struct
S
{
float3 v
;
};
void
f
(
thread S
*
const
tint_symbol
)
{
(*(
tint_symbol
)).
v
=
float3
(
1.0f
,
2.0f
,
3.0f
);
(*(
tint_symbol
)).
v
[
0
]
=
1.0f
;
(*(
tint_symbol
)).
v
[
1
]
=
2.0f
;
(*(
tint_symbol
)).
v
[
2
]
=
3.0f
;
}