gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.08k stars 650 forks source link

How to pre cache a constant large Float32Array? #720

Open ITs-WHY opened 2 years ago

ITs-WHY commented 2 years ago

There is a large Float32Array includes 80 million points, but it is constant. Is There any way to pre cache it so I can directly use the point data without input it every time I call the function?