Sign in
dawn
/
dawn
/
da2acafcd691e6e6de648a1c7408c6c662cb6943
/
.
/
test
/
tint
/
expressions
/
binary
/
mod
/
scalar-scalar
/
f16.wgsl.expected.ir.dxc.hlsl
blob: 0fb9d68d84dfb5d9e5a790b6db130eb31f45ba19 [
file
] [
log
] [
blame
]
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
float16_t
a
=
float16_t
(
1.0h
);
float16_t
b
=
float16_t
(
2.0h
);
float16_t
v
=
(
a
/
b
);
float16_t
v_1
=
floor
(
v
);
float16_t
r
=
((
a
-
(((
v
<
float16_t
(
0.0h
)))
?
(
ceil
(
v
))
:
(
v_1
)))
*
b
);
}