Re:Build WebGPU Apps Today with PlayCanvas
by daredevildave on Thursday May 16, 2024 @12:27PM
(#40380236)
I can't wait for compute shaders to be widely available on the web!
[ Parent
| on HN ]
Any idea how close Apple is to shipping stable WebGPU? They are the main bottleneck in terms of marketshare, Chrome has shipped it on Windows and Android already.
Re:Build WebGPU Apps Today with PlayCanvas
by ovenchips on Thursday May 16, 2024 @01:30PM
(#40380947)
They feel pretty close to shipping this to me:
https://webkit.org/blog/14879/webgpu-now-available-for-testi...
They recently shipped an update that resolves all issues running PlayCanvas' WebGPU backend. My guess is that we're looking at 6-12 months to reach production.
To track WebGPU support, I recommend this awesome site:
https://web3dsurvey.com/webgpu
Re:Build WebGPU Apps Today with PlayCanvas
by givinguflac on Thursday May 16, 2024 @01:33PM
(#40380988)
It’s in advanced safari iOS feature flags right now, and has been for a while. It works on the demos for PlayCanvas, but I can’t speak to long term stability .
Re:Build WebGPU Apps Today with PlayCanvas
by edgedeveloper44 on Thursday May 16, 2024 @01:34PM
(#40381004)
Hopefully it will release later this year to coincide with iOS 18. As other commenters have mentioned, it's already available for developer testing.
Linux is missing it too. And WebGL2 beats WebGPU on all GPU performance benchmarks.
Re:Build WebGPU Apps Today with PlayCanvas
by kamikazeturtles on Thursday May 16, 2024 @01:14PM
(#40380771)
What sort of things will compute shaders on the web unlock that wasn't possible before? Asking as someone with only a little graphics programming experience
Basically they bring us back to the days of 3D software rendering algorithms, now however fully accelerated on the graphics card.
See offline renders like OTOY, that make use of CUDA.
However we could already have gotten them via WebGL Compute, as they are part of OpenGL ES, had its implementation not been sabotaged.
https://github.com/9ballsyndrome/WebGL_Compute_shader
https://registry.khronos.org/webgl/specs/latest/2.0-compute/
Re:Build WebGPU Apps Today with PlayCanvas
by daredevildave on Thursday May 16, 2024 @01:28PM
(#40380913)
They unlock a lot of advanced graphics techniques that are too slow to do CPU-side but work well in parallel on GPU. It's a pretty wide variety of things, but e.g. lighting, mesh manipulation, terrain, voxels, post-processing.
Re:Build WebGPU Apps Today with PlayCanvas
by ovenchips on Thursday May 16, 2024 @01:27PM
(#40380908)
I think you'll begin to see more advanced particle systems and physical simulations for a start. And 3D Gaussian Splatting will probably benefit too (since compute will probably enable much faster sorting of splats). So it's not really that this stuff wasn't possible before...but compute will enable these techniques to run far faster.
Re:Build WebGPU Apps Today with PlayCanvas
by astlouis44 on Thursday May 16, 2024 @01:27PM
(#40380911)
Native games on the web.
Better crypto miners in the browser
With WebGPU, Stable Diffusion in the browser (watch out, once you click the "Generate" button, it will fetch 2 GByte of daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaata) (and probably make your laptop hang whiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiile generating, as you can tell by my typing).