Sign in
dawn
/
dawn
/
f35c7190540806030ce564db1cde3b84a3c8e7be
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_expression
/
scalar-scalar
/
i32.wgsl.expected.fxc.hlsl
blob: fd4f932ff7e540cb72408cb535c05f515e980d21 [
file
] [
log
] [
blame
]
int
value_or_one_if_zero_int
(
int
value
)
{
return
value
==
0
?
1
:
value
;
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
int
a
=
1
;
int
b
=
0
;
const
int
r
=
(
a
%
value_or_one_if_zero_int
((
b
+
b
)));
return
;
}