Sign in
dawn
/
dawn
/
2777cbc4415efdbd7d67a0cf2f95bc3825e1fe53
/
.
/
test
/
tint
/
expressions
/
binary
/
div_by_zero
/
by_expression
/
scalar-scalar
/
i32.wgsl.expected.hlsl
blob: 6ed443002a721ec51585d92139173f46200c99db [
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
;
}