Sign in
dawn
/
dawn
/
3d64565e2eb8fe4a377b18e288edac70d28d586f
/
.
/
test
/
tint
/
expressions
/
binary
/
mod
/
scalar-scalar
/
u32.wgsl.expected.ir.dxc.hlsl
blob: f744244309ca9aa4f2e4328838669504060e4a70 [
file
] [
log
] [
blame
]
uint
tint_mod_u32
(
uint
lhs
,
uint
rhs
)
{
uint
v
=
(((
rhs
==
0u
))
?
(
1u
)
:
(
rhs
));
return
(
lhs
-
((
lhs
/
v
)
*
v
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint
a
=
1u
;
uint
b
=
2u
;
uint
r
=
tint_mod_u32
(
a
,
b
);
}