Sign in
dawn
/
dawn
/
f7e113d47e2f88029699a2e13e95eb28e289c50a
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_constant
/
scalar-scalar
/
i32.wgsl.expected.fxc.hlsl
blob: a5f5597b343707b832a7b6d47b430c8192a4b0a4 [
file
] [
log
] [
blame
]
int
tint_mod
(
int
lhs
,
int
rhs
)
{
return
(
lhs
%
(((
rhs
==
0
)
|
((
lhs
==
-
2147483648
)
&
(
rhs
==
-
1
)))
?
1
:
rhs
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
const
int
a
=
1
;
const
int
b
=
0
;
const
int
r
=
tint_mod
(
a
,
b
);
return
;
}