Sign in
dawn
/
dawn
/
f35c7190540806030ce564db1cde3b84a3c8e7be
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_expression
/
vec3-scalar
/
u32.wgsl.expected.fxc.hlsl
blob: dca1662c8d47ad1a98f8521fa4211111c32e7b58 [
file
] [
log
] [
blame
]
uint
value_or_one_if_zero_uint
(
uint
value
)
{
return
value
==
0u
?
1u
:
value
;
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint3 a
=
uint3
(
1u
,
2u
,
3u
);
uint
b
=
0u
;
const
uint3 r
=
(
a
%
value_or_one_if_zero_uint
((
b
+
b
)));
return
;
}