-
Notifications
You must be signed in to change notification settings - Fork 666
261 - webgl2 #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
261 - webgl2 #262
Conversation
Will the addition of webgl2 support bring in any new features, or make new features possible in the future? |
I noticed in gpu.js-2.0.0-rc.13 release you have folder webgl2.. How to use it? I really need it |
If you simply use const gpu = new GPU();
const kernel = gpu.createKernel(function() {
// some maths here
return value;
}, { output: [50] }); If it is available on your system, WebGL2 will be used automatically. If it is not, WebGL1 will be used. If that isn't available, your CPU will be used. Likewise in Node, if you do the same, HeadlessGL will be used, and if it is not available, CPU will be used. |
well... I get this error:
|
All tests passing, webgl2 iminent.