Sign in
dawn
/
dawn
/
94884fc11d3a42e398eb75972017aac6df3ac038
/
.
/
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
);
}