Sign in
dawn
/
dawn
/
fb981c813468be14c415c0de132ad7c9f8b08aef
/
.
/
test
/
tint
/
expressions
/
binary
/
div_by_zero
/
by_identifier
/
scalar-scalar
/
u32.wgsl.expected.dxc.hlsl
blob: ffaaaba7d0108e4c6f190c1890bc8432dd4d9581 [
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
;
const
uint
r
=
tint_div
(
a
,
b
);
return
;
}