Sign in
dawn
/
dawn
/
7f760cb25c36c99d09067a4b8022e91057fcf20f
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_expression
/
vec3-scalar
/
u32.wgsl.expected.fxc.hlsl
blob: b3a498d2d2b7740777f7b83ba8fc0d5e15980beb [
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
+
b
));
return
;
}