Sign in
dawn
/
dawn
/
81d11b3cf1d5d10427b3ee5ac08f3e209d37a97f
/
.
/
test
/
tint
/
expressions
/
binary
/
mod
/
scalar-scalar
/
f32.wgsl.expected.dxc.hlsl
blob: 0c9eb2e0755a1fafb26e8ca1b3d436f707a04953 [
file
] [
log
] [
blame
]
float
tint_float_mod
(
float
lhs
,
float
rhs
)
{
return
(
lhs
-
(
trunc
((
lhs
/
rhs
))
*
rhs
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
const
float
a
=
1.0f
;
const
float
b
=
2.0f
;
const
float
r
=
tint_float_mod
(
a
,
b
);
return
;
}