4 ms·
Note that (only?) Chrome canary supports WebGPU so this won't yet work in most people's browsers. They kindly provide instructions to run it (even on Apple M1)
by nl 4y ago
Note that (only?) Chrome canary supports WebGPU so this won't yet work in most people's browsers.
They kindly provide instructions to run it (even on Apple M1).
- crowwork 4y agoWebgpu will ship this year, so it will be more widely available pretty soon
- pjmlp 4y agoIt took 10 years for WebGL to be widely available, and it is still barely used beyond some niche use cases like 3D models in ecommerce, or Flash's revenge when coupled with WASM.
- EugeneOZ 4y agoWith WebGPU it will be faster - libraries like ThreeJS will use WebGPU when possible.
- pjmlp 4y agoThreeJS doesn't even has a good alternative to having a complete incompatible shading language, other than switching to graphical based shaders. Do you expect everyone to rewrite 10 years of shaders just for fun?
- BiteCode_dev 4y agoYes.
- modeless 4y agoThere is an origin trial. They should enable that, then it would work in Chrome stable today. It's only supported on Windows and Mac right now though, I think.
- capitainenemo 4y agohm. It seems it's been in firefox, pref'd off by default, for a few years now.. https://hacks.mozilla.org/2020/04/experimental-webgpu-in-firefox/ https://hacks.mozilla.org/2020/04/experimental-webgpu-in-fir...
- ruihangl 4y agoThanks for the pointer! As far as we know the WebGPU development on firefox is a bit lagging behind, so we use Chrome and did not develop this project on firefox.
- junrushao1994 4y agoI downloaded Firefox nightly a couple of days ago, turned the flags on accordingly, but it didn't work out saying: > Find an error initializing the WebGPU device TypeError: adapter.requestAdapterInfo is not a function No idea how to fix it.
- capitainenemo 4y agoWell, based on the reply below, it sounds like they weren't testing in Firefox at all, so my guess is they were simply using APIs that only exist in Chrome right now. Whether those are actually necessary for the SD implementation, no idea.
- junrushao1994 4y agoSubmitted a question in Firefox support forum, and there seems some bugs blocking it from running smoothly: https://support.mozilla.org/en-US/questions/1408328 https://support.mozilla.org/en-US/questions/1408328
- capitainenemo 4y agoAh. Thanks for following up. I see it's mentioning there was a regression bug in v111 in that particular call, so I guess could use an older version. I'm going to subscribe to the bug too.
- FL33TW00D 4y agoWebGPU comes out April 26th - then 65% of the worlds web browsers will have access to it.
- WanderPanda 4y agoSuper interesting! Do you have a source on this? A quick search didn‘t turn up anything for me