Sign in
dawn
/
dawn
/
55b8561232dcdb3351da1233d5a3bb710734eda4
/
.
/
test
/
tint
/
expressions
/
binary
/
div_by_zero
/
by_constant
/
scalar-scalar
/
u32.wgsl.expected.dxc.hlsl
blob: f9b3bc835fedf81a08a203bb877c40ef4468f953 [
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
=
0u
;
uint
r
=
tint_div
(
a
,
b
);
return
;
}