Support `Float32List`? (Can make a PR)
fzyzcjy opened this issue · comments
I need Float32List for things like drawRawAtlas
; I can make a PR for this.
We do have implementation for both f32
and f64
already so Vec<f32>
should work, no?
Are the Float32List
is different than List<double>
in dart?
if so, we could implement the missing typed dart values too.
Would be great to see a PR for that.
Are the Float32List is different than List in dart?
Yes, very different. The former is much faster and memory-efficient than the latter. In addition, we can create a zero-copy Float32List while we cannot for the latter.
Would be great to see a PR for that.
#15 ;)
btw even Float64List is much better than List of double. See dart/flutter's doc for more details.
You are welcome!