Sign in
dawn
/
dawn
/
144ebed4c7ee7c6ecddeedfa81d607bbf256e8f2
/
.
/
test
/
tint
/
expressions
/
binary
/
mod
/
scalar-scalar
/
u32.wgsl.expected.fxc.hlsl
blob: 21b10a2e0f99d454ffb6714acb2d73a088feefad [
file
] [
log
] [
blame
]
uint
tint_mod
(
uint
lhs
,
uint
rhs
)
{
return
(
lhs
%
((
rhs
==
0u
)
?
1u
:
rhs
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint
a
=
1u
;
uint
b
=
2u
;
uint
r
=
tint_mod
(
a
,
b
);
return
;
}