Sign in
dawn
/
dawn
/
ad6d0d3c18fb19b4493d824d612795f3efc71a0f
/
.
/
test
/
tint
/
expressions
/
binary
/
div
/
scalar-scalar
/
u32.wgsl.expected.fxc.hlsl
blob: d74ffc1a41b87c179fdb3be3cc45ecd738ed6ef7 [
file
] [
log
] [
blame
]
uint
tint_div
(
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_div
(
a
,
b
);
return
;
}