Sign in
dawn
/
dawn
/
240a934d0f6aa2970aa58e44c85a6bfdf3d6895e
/
.
/
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
;
}