WebGPU: the details
WebGL arrived in 2011 on top of a graphics model from the 1990s. WebGPU was designed on each platform’s modern APIs—Direct3D 12, Metal and Vulkan—which cuts the processor work per drawn object and allows more complex scenes. It also adds compute shaders: programs that use the graphics card for calculations other than drawing, such as simulations or machine learning models in the browser.
It has been available in Chrome and Edge since 2023, in Safari since version 26 and in Firefox since 2025, with support that still varies by operating system. So in a real project the prudent approach is to use WebGPU where it exists and keep WebGL as a fallback. Libraries such as Three.js already make that possible.