Sign in
dawn
/
dawn
/
refs/heads/chromium/5295
/
.
/
test
/
tint
/
expressions
/
binary
/
div_by_zero
/
by_expression
/
scalar-scalar
/
u32.wgsl.expected.dxc.hlsl
blob: ec658be559d6c83e175f735795566f2a1cda7103 [
file
] [
log
] [
blame
] [
edit
]
uint
value_or_one_if_zero_uint
(
uint
value
)
{
return
value
==
0u
?
1u
:
value
;
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint
a
=
1u
;
uint
b
=
0u
;
const
uint
r
=
(
a
/
value_or_one_if_zero_uint
((
b
+
b
)));
return
;
}