Sign in
dawn
/
dawn
/
c58ba9edddadf2d55b4bef8e045b92e48e3d435e
/
.
/
test
/
tint
/
statements
/
compound_assign
/
divide_by_zero.wgsl
blob: 5e340f930d8c82603bb99e12f5fe10a764d031d7 [
file
] [
log
] [
blame
]
var
<private>
a
:
i32
;
var
<private>
b
:
f32
;
fn foo
(
maybe_zero
:
i32
)
{
a
/=
maybe_zero
;
a
%=
maybe_zero
;
b
/=
0.0
;
b
%=
0.0
;
b
/=
f32
(
maybe_zero
);
b
%=
f32
(
maybe_zero
);
}