6 ms·
I would be a lot more okay with this if Apple supported Vulkan, the more portable comparable API, rather than just the macOS/iOS-only Metal. I also wonder what
by shurcooL 8y ago
I would be a lot more okay with this if Apple supported Vulkan, the more portable comparable API, rather than just the macOS/iOS-only Metal.
I also wonder what means for WebGL and its future. Right now, WebGL works in browsers on macOS, Linux, Windows, iOS, Android, which is incredible. There is no equivalent.
Sure, Apple has started working on WebGPU, but that’s not yet ready nor is it guaranteed to gain Linux, Windows, Android support.
- bla2 8y agoMy guess is browsers will just implement WebGL on top of Metal and this will be transparent to web developers.
- skymt 8y agoThere's precedent: Chrome and Firefox both implement WebGL on Windows with ANGLE, which translates OpenGL to Direct3D. https://en.wikipedia.org/wiki/ANGLE_(software) https://en.wikipedia.org/wiki/ANGLE_(software)
- paraboul 8y agoAnd it seems they are working on a more generic library : https://github.com/google/nxt-standalone https://github.com/google/nxt-standalone
- skymt 8y agoAh, and NXT has a Metal backend! Very cool. It's important to note that NXT isn't necessarily a replacement for ANGLE. It's an experimental replacement for WebGL as a whole, with a different API. There still needs to be a way to run WebGL programs on Mac if this deprecation leads to removal a few versions down the line.
- fulafel 8y agoAnd not strictly a replacement either, WebGL would not go away. The successor to WebGL is still so far away that there will probably be some versions after WebGL 2.0.
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- greggman 8y agobrowsers are moving to webgpu https://lists.w3.org/Archives/Public/public-gpu/ https://lists.w3.org/Archives/Public/public-gpu/
- nomel 8y agoWebGL is a browser level API that does not require native driver support like OpenGL. They're related only in semantics.
- jzl 8y agoAgreed it would be nice if there were official Apple support, but FYI there's a project called MoltenVK that implements the Vulkan API on top of Metal: https://arstechnica.com/gadgets/2018/02/vulkan-is-coming-to-macos-ios-but-no-thanks-to-apple/ https://arstechnica.com/gadgets/2018/02/vulkan-is-coming-to-...
- yAak 8y agoApparently Valve shipped a DOTA 2 update a few days ago that is using it: https://twitter.com/Plagman2/status/1002324195135520768 https://twitter.com/Plagman2/status/1002324195135520768 https://www.phoronix.com/scan.php?page=news_item&px=Dota-2-Initial-Mac-Vulkan https://www.phoronix.com/scan.php?page=news_item&px=Dota-2-I... So that's pretty promising!
- sparky_ 8y agoMentioning this in a couple different places, but consider Molten (https://moltengl.com/ https://moltengl.com/) for this use case; it's a third party but very high quality reimplementation of Vulkan and OpenGL ES atop Metal. In other words, an easy way to adopt metal without actually porting your app.