Sign in
dawn
/
dawn
/
6ae4eba085300d885de90e24947c288f20f682fc
/
.
/
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
;
}