-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Pyodide support #650
Comments
I expect we need some work in wgpu-py too: pygfx/wgpu-py#407 Although ... you mentioning that cffi is supported ... would wgpu-native be compilable with emscriptem and would it use webGPU then automatically? Eeeh, probably not, but worth checking. |
I don't think so. We'd have to use the JS API to talk to the browser's web GPU implementation. |
Okay. I was experimenting around with getting I got fairly far and it was a messy process and you can see the code over here: You can inspect it through your browser at this This involved tearing out anything With
Then I tried using and I'd hit a wall with this kind of error:
The code for that was a slightly modified version of this repo. All in all, I think there is something so wrong about |
It's on our roadmap for later this year. It's fairly complex because the JS API is async in various places. We have to start on wgpu-py level first and then work on pygfx. But we do have a plan and it is feasible. See here: pygfx/wgpu-py#391 and here: #615 Thank you for sharing your notes and feedback. I'll close this ticket doesn't create more confusion. |
Thank you for pointing that out. Maybe over time I can start to contribute, but I don't think this problem is one that is good to start off with. I have a computer vision focus and |
I've reviewed the requirements for making pygfx compatible with pyodide. It seems like all dependencies are already either built-in to pyodide (e.g. Jinja2 and cffi), or they are pure python. wgpu-py and pylinalg are already compatible I think. The only challenge lies in pygfx in (you guessed it) freetype-py and uharfbuzz which are most likely not available in emscripten format (I think).
The text was updated successfully, but these errors were encountered: