Skip to content
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

Enable the ability to create a WebGL rendering context with options #9

Open
nkreeger opened this issue Jan 31, 2019 · 4 comments
Open
Assignees

Comments

@nkreeger
Copy link
Contributor

The current method for creating a WebGL session createWebGLRenderingContext() simply tries to default a WebGL EGL/GL context and session with the best options. It would be nice to allow for specific versions and potentially extensions to be enabled/disabled at creation.

@nkreeger nkreeger self-assigned this Jan 31, 2019
@innerop
Copy link

innerop commented Mar 1, 2019

Sane defaults are preferred for beginners, so would love to keep this convenience (many of us are interested in using this for DL tasks with TF.js, and have no clue about WebGL specifics) -- I agree that advanced users should be able to define.

I would love to see TF.js users being the primary target audience with the general GL audience being served, too, but not at the expense of TF.js audience. May be hard to address two audiences but splitting along the lines of beginner and advanced is reasonable, IMO. My $0.02

@nkreeger
Copy link
Contributor Author

nkreeger commented Mar 1, 2019

Sure - this package will be an dependency to a TensorFlow.js backend integration. The focus on this library is to provide headless GL ES/Compute Shader functionality to Node.js.

@AlexVestin
Copy link
Contributor

Adding width & height to the options would be great

@nkreeger
Copy link
Contributor Author

@AlexVestin just published 0.0.14 of node-gles w/ your changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants