Sign in
dawn
/
dawn
/
f7e113d47e2f88029699a2e13e95eb28e289c50a
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_identifier
/
vec3-scalar
/
u32.wgsl.expected.fxc.hlsl
blob: b9e649a4473e444dcac1ef26a4f2b5139211e939 [
file
] [
log
] [
blame
]
uint3 tint_mod
(
uint3 lhs
,
uint
rhs
)
{
const
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
=
0u
;
const
uint3 r
=
tint_mod
(
a
,
b
);
return
;
}