Webgpu will ship this year, so it will be more widely available pretty soon
It 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.
With WebGPU it will be faster - libraries like ThreeJS will use WebGPU when possible.
ThreeJS 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?
Re:Web Stable Diffusion
by BiteCode_dev on Friday March 17, 2023 @07:49AM
(#35195761)
Yes.
There 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.
Re:Web Stable Diffusion
by capitainenemo on Thursday March 16, 2023 @11:58PM
(#35192899)
hm. 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-fir...
Re:Web Stable Diffusion
by junrushao1994 on Friday March 17, 2023 @12:19AM
(#35193063)
I 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.
Re:Web Stable Diffusion
by capitainenemo on Friday March 17, 2023 @02:01PM
(#35200562)
Well, 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.
Re:Web Stable Diffusion
by junrushao1994 on Friday March 17, 2023 @06:08PM
(#35203553)
Submitted a question in Firefox support forum, and there seems some bugs blocking it from running smoothly: https://support.mozilla.org/en-US/questions/1408328
Re:Web Stable Diffusion
by capitainenemo on Saturday March 18, 2023 @01:59PM
(#35211475)
Ah. 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.
Thanks 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.
WebGPU comes out April 26th - then 65% of the worlds web browsers will have access to it.
Re:Web Stable Diffusion
by WanderPanda on Friday March 17, 2023 @02:40PM
(#35201102)
Super interesting! Do you have a source on this? A quick search didn‘t turn up anything for me
They kindly provide instructions to run it (even on Apple M1).