Sign in
dawn
/
tint
/
bc5d8f6bcf683af1a7968491e94bb6bfc445ac35
/
.
/
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
;
}