Sign in
dawn
/
dawn
/
6a4c918cbfc6ea6c2ea0dc377851adb32d929cfd
/
.
/
test
/
tint
/
expressions
/
binary
/
div
/
scalar-scalar
/
u32.wgsl.expected.dxc.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
;
}