forked from mikeseven/node-webgl
-
Notifications
You must be signed in to change notification settings - Fork 169
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
gl.texImage2D and HTMLCanvasElement #257
Comments
@ivanpopelyshev maybe you can suggest anything, thanks! |
If I understand correctly, we could create shared textures using EGL and pass them between contexts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
gl.texImage2D supports HTMLCanvasElement
In browser it works instantly , because under the hood they avoid moving data GPU -> CPU -> GPU
In headless gl implementation we see that in order to upload canvas to webgl it reads pixels from 2d context and then uploads it webgl
headless-gl/src/javascript/webgl-rendering-context.js
Line 3149 in f1ed92f
Is it possible to speed it up somehow using just webgl?
The text was updated successfully, but these errors were encountered: