Sign in
dawn
/
dawn
/
fb981c813468be14c415c0de132ad7c9f8b08aef
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_constant
/
scalar-scalar
/
u32.wgsl.expected.fxc.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
;
}