Float16Array is a new typed array (mdn docs) usually used for WebGL and WebGPU. This may be a bit tricky to add without breaking on older browsers (earlier than April 2025).
A workaround for SvelteKit-like apps is to use an ArrayBuffer and re-construct the Float16Array on the client.
Expands on the logic in #69.
Float16Arrayis a new typed array (mdn docs) usually used for WebGL and WebGPU. This may be a bit tricky to add without breaking on older browsers (earlier than April 2025).A workaround for SvelteKit-like apps is to use an
ArrayBufferand re-construct theFloat16Arrayon the client.Expands on the logic in #69.