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