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

Any one could explain the differences between "WebGL via Metal" vs. "WebGPU" on iOS? #951

Open
odieXin opened this issue Jan 12, 2022 · 2 comments

Comments

@odieXin
Copy link

odieXin commented Jan 12, 2022

WebGPU was an experimental feature on iOS 11 and 12.
WebGL via Metal is the latest option with iOS 15 and Mac OS as well.
Can someone explain their differences? @milhidaka

@milhidaka
Copy link
Member

The two are completely different.
WebGL via Metal exposes a WebGL interface to JavaScript applications; there is an overhead to convert WebGL instructions to native GPU instructions.
WebGPU, implemented in iOS 11, exposes a new interface for using the GPU. It is a thin wrapper for Metal and can achieve relatively high performance. Because Metal is an Apple-specific technology, it was not ported to other platforms. We don't know the exact reason, but WebGPU was removed in iOS15. Once the WebGPU standard is established as friendly to all platforms, we expect to see WebGPU implemented in iOS again.

@odieXin
Copy link
Author

odieXin commented Jan 13, 2022

Thanks @milhidaka for the detailed explanation!

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