Sign in
dawn
/
dawn
/
bc21c4d3795f3acad8348bdbd7be1f7ecca568a6
/
.
/
test
/
tint
/
expressions
/
binary
/
div
/
scalar-scalar
/
u32.wgsl.expected.ir.msl
blob: c3dc9d8e5c57fd814008bdbbec0ac47d2bcd7d0c [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
uint
tint_div_u32
(
uint
lhs
,
uint
rhs
)
{
return
(
lhs
/
select
(
rhs
,
1u
,
(
rhs
==
0u
)));
}
kernel
void
f
()
{
uint
const
a
=
1u
;
uint
const
b
=
2u
;
uint
const
r
=
tint_div_u32
(
a
,
b
);
}