Sign in
dawn
/
dawn
/
027bf02278cc4c4af57515a125d6c01ba40262ab
/
.
/
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
;
}