We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
@ivanpopelyshev maybe you can suggest anything, thanks!
Sorry, something went wrong.
If I understand correctly, we could create shared textures using EGL and pass them between contexts
No branches or pull requests
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: