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

Simple array upload? #4

Open
mattdesl opened this issue Aug 25, 2014 · 1 comment
Open

Simple array upload? #4

mattdesl opened this issue Aug 25, 2014 · 1 comment

Comments

@mattdesl
Copy link
Member

It would be nice to have a way of simply uploading a typed array without having to rely on DOM images or depend on ndarray just to do so.

EDIT: hmm, since gl-texture2d already relies on ndarray I guess this approach wouldn't make any difference in bundle size. Not such a huge deal, but I'm sure others will come looking for this feature

@mikolalysenko
Copy link
Member

We could maybe have something which accepts a vanilla array-of-arrays type thing. For other arrays like flattened 1D buffers, ndarray just makes more sense as you would need to specify size/stride/offset info anyway.

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

2 participants