Sign in
dawn
/
dawn
/
5cf943e7972c52547ce3b2d581bd208ce2e18886
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_constant
/
scalar-scalar
/
u32.wgsl.expected.dxc.hlsl
blob: cf35054cd7d27064f4c6876338f8bc98bfe39977 [
file
] [
log
] [
blame
]
uint
tint_mod
(
uint
lhs
,
uint
rhs
)
{
return
(
lhs
%
((
rhs
==
0u
)
?
1u
:
rhs
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
const
uint
a
=
1u
;
const
uint
b
=
0u
;
const
uint
r
=
tint_mod
(
a
,
b
);
return
;
}