Sign in
dawn
/
dawn
/
8f1d276a3780e023f44b54385255479b4a7e3be7
/
.
/
test
/
tint
/
expressions
/
binary
/
div
/
scalar-scalar
/
u32.wgsl.expected.ir.dxc.hlsl
blob: a6a7ab871cf6caca236c523ba021585663667332 [
file
] [
log
] [
blame
]
uint
tint_div_u32
(
uint
lhs
,
uint
rhs
)
{
return
(
lhs
/
(((
rhs
==
0u
))
?
(
1u
)
:
(
rhs
)));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint
a
=
1u
;
uint
b
=
2u
;
uint
r
=
tint_div_u32
(
a
,
b
);
}