Sign in
dawn
/
tint
/
9943de6813695e831a9e6aa43ae36322e81ae3e6
/
.
/
test
/
expressions
/
binary
/
mod_by_zero
/
by_expression
/
vec3-vec3
/
i32.wgsl.expected.hlsl
blob: f33a43d8ef4b4851b6a63412585518d6c95af980 [
file
] [
log
] [
blame
]
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
()
{
int3 a
=
int3
(
1
,
2
,
3
);
int3 b
=
int3
(
0
,
5
,
0
);
const
int3 r
=
(
a
%
value_or_one_if_zero_int3
((
b
+
b
)));
return
;
}