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