Sign in
dawn
/
dawn
/
8ac417c39c7a3a61e462bcb662d64e435cd18696
/
.
/
test
/
tint
/
expressions
/
binary
/
div_by_zero
/
by_expression
/
vec3-vec3
/
u32.wgsl.expected.fxc.hlsl
blob: d8a010e47ad9b90bc2f8aa151547e3fb986c79dc [
file
] [
log
] [
blame
]
uint3 tint_div
(
uint3 lhs
,
uint3 rhs
)
{
return
(
lhs
/
((
rhs
==
(
0u
).
xxx
)
?
(
1u
).
xxx
:
rhs
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint3 a
=
uint3
(
1u
,
2u
,
3u
);
uint3 b
=
uint3
(
0u
,
5u
,
0u
);
const
uint3 r
=
tint_div
(
a
,
(
b
+
b
));
return
;
}