Sign in
dawn
/
dawn
/
194abe611ba619d61dbb883483c91b088213fa3e
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_identifier
/
scalar-scalar
/
f32.wgsl.expected.fxc.hlsl
blob: 0fc0aef110bfd49831d004e01d24c43e84d415c7 [
file
] [
log
] [
blame
]
float
tint_float_mod
(
float
lhs
,
float
rhs
)
{
return
(
lhs
-
(
trunc
((
lhs
/
rhs
))
*
rhs
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
float
a
=
1.0f
;
float
b
=
0.0f
;
const
float
r
=
tint_float_mod
(
a
,
b
);
return
;
}