Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
JS-0.4.0
Description
The Float16Vector#toArray() implementation currently transforms each half float into a single float, and returns a Float32Array. All the other toArray() implementations are zero-copy, and this deviation would break anyone expecting to give two-byte half floats to native APIs like WebGL. We should instead include Float16Vector#toFloat32Array() and Float16Vector#toFloat64Array() convenience methods that do rely on copying.
Attachments
Issue Links
- links to