Sign in
dawn
/
dawn
/
7f45581f4588344c2ddc7ea7c621f222400d3f4d
/
.
/
test
/
tint
/
expressions
/
binary
/
mod
/
scalar-scalar
/
i32.wgsl.expected.fxc.hlsl
blob: 84546915fc610266f52859c204f602a2edfaf2ef [
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
=
2
;
const
int
r
=
tint_mod
(
a
,
b
);
return
;
}