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