Sign in
dawn
/
dawn
/
refs/heads/chromium/5146
/
.
/
test
/
tint
/
expressions
/
binary
/
div_by_zero
/
by_expression
/
vec3-scalar
/
i32.wgsl.expected.hlsl
blob: 964d2751f3e6edcfdf4a2623eea07efc42a47c25 [
file
] [
log
] [
blame
] [
edit
]
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
;
}