Sign in
dawn
/
dawn
/
81d11b3cf1d5d10427b3ee5ac08f3e209d37a97f
/
.
/
test
/
tint
/
expressions
/
binary
/
mod
/
scalar-scalar
/
u32.wgsl.expected.fxc.hlsl
blob: b2cc513610ae99e4c20296107da75fc82500ea69 [
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
=
2u
;
const
uint
r
=
tint_mod
(
a
,
b
);
return
;
}