Sign in
dawn
/
dawn
/
refs/heads/chromium/5663
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_constant
/
scalar-scalar
/
f32.wgsl.expected.fxc.hlsl
blob: 515bcfb4cf050b47139460155cbb3577667ec7c7 [
file
] [
log
] [
blame
] [
edit
]
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
=
0.0f
;
const
float
r
=
tint_float_mod
(
a
,
b
);
return
;
}