Sign in
dawn
/
dawn
/
f0e6f57959bfe84d17ec529e2a99e9d625315b6d
/
.
/
test
/
tint
/
expressions
/
swizzle
/
write
/
packed_vec3
/
f16.wgsl
blob: 5d1b3aa37dac771313da822afe197a0be351f10b [
file
] [
log
] [
blame
]
enable f16
;
struct
S
{
v
:
vec3
<f16>
,
};
@group
(
0
)
@binding
(
0
)
var
<
storage
,
read_write
>
U
:
S
;
fn f
()
{
U
.
v
=
vec3
<f16>
(
1.0h
,
2.0h
,
3.0h
);
U
.
v
.
x
=
1.0h
;
U
.
v
.
y
=
2.0h
;
U
.
v
.
z
=
3.0h
;
}