Sign in
dawn
/
dawn
/
55b8561232dcdb3351da1233d5a3bb710734eda4
/
.
/
test
/
tint
/
expressions
/
binary
/
div
/
vec3-scalar
/
u32.wgsl.expected.fxc.hlsl
blob: 94e1387138b8dc6c41e35ff9acd9b97a8dd467e5 [
file
] [
log
] [
blame
]
uint3 tint_div
(
uint3 lhs
,
uint
rhs
)
{
uint3 r
=
uint3
((
rhs
).
xxx
);
return
(
lhs
/
((
r
==
(
0u
).
xxx
)
?
(
1u
).
xxx
:
r
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint3 a
=
uint3
(
1u
,
2u
,
3u
);
uint
b
=
4u
;
uint3 r
=
tint_div
(
a
,
b
);
return
;
}