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