mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
chore: note: round_ties_even
is on stable, but not MSRV yet
Co-Authored-By: Erich Gubler <erichdongubler@gmail.com>
This commit is contained in:
parent
5032291573
commit
f842d80f52
@ -1175,8 +1175,8 @@ impl<'a> ConstantEvaluator<'a> {
|
|||||||
component_wise_float!(self, span, [arg], |e| { Ok([e.floor()]) })
|
component_wise_float!(self, span, [arg], |e| { Ok([e.floor()]) })
|
||||||
}
|
}
|
||||||
crate::MathFunction::Round => {
|
crate::MathFunction::Round => {
|
||||||
// TODO: Use `f{32,64}.round_ties_even()` when available on stable. This polyfill
|
// TODO: this hit stable on 1.77, but MSRV hasn't caught up yet
|
||||||
// is shamelessly [~~stolen from~~ inspired by `ndarray-image`][polyfill source],
|
// This polyfill is shamelessly [~~stolen from~~ inspired by `ndarray-image`][polyfill source],
|
||||||
// which has licensing compatible with ours. See also
|
// which has licensing compatible with ours. See also
|
||||||
// <https://github.com/rust-lang/rust/issues/96710>.
|
// <https://github.com/rust-lang/rust/issues/96710>.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user