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