Hello, everyone! In this engaging article, we will delve into the fascinating realm of Web GPU. Buckle up as we embark on a journey through the history of 3D computer graphics, understand what Web GPU is, explore its distinctions from WebGL, scrutinize big tech companies’ investments in Web GPU, and wrap up with insights on how you can kickstart your learning journey in Web GPU.
Before we dive in, a quick heads-up – I’m not a Web GPU expert. I started exploring it just a few months ago, and my most notable achievement so far involves recreating a simplified version of Sebastian Lag’s slime mold simulation using Web GPU’s compute shader functionality. Now, let’s jump right in.
History of 3D Graphics
What is Web GPU?
At its core, Web GPU is a graphics API positioned atop DirectX, Vulkan, and Metal. Contrary to its name, Web GPU extends beyond a browser context; there are implementations like Dawn for C++ and WGPU for Rust. Focusing on the web side, Web GPU strikes a balance between performance and user-friendliness, outpacing OpenGL and WebGL in speed while being more approachable than Metal, Vulkan, and DirectX.
WebGPU vs WebGL
Web GPU emerges as the successor to WebGL, introducing improvements in drawing graphics. It eliminates the need to grapple with the global state, enhancing speed as it wraps around modern APIs like Vulkan, DirectX, and Metal. Early benchmarks by the Safari team showcased Web GPU’s ability to draw triangles 2 to 8 times faster than WebGL. Moreover, Web GPU revolutionizes by enabling computations on the GPU, potentially accelerating processing speeds by 1,000 to 10,000 times compared to CPU execution.
WebGPU in a Nutshell
2D Design Tools
Looking at real-world applications, Figmas stands out as an exemplary 2D design tool that embraced WebGL’s potential. Figma’s success story, marked by the rejection of a $20 billion acquisition offer by Adobe, exemplifies how WebGL influenced the transition from traditional to web-based design tools.
In the realm of Computer-Aided Design (CAD), Web GPU is poised to play a significant role. Platforms like Onshape, built on WebGL, hint at the potential shift from established CAD software like AutoCAD and SolidWorks towards web-based solutions. This shift, though not imminent, underscores the industry’s evolving landscape.
In the domain of medical education, WebGL has already made strides in visualizing the human body through 3D platforms. Transitioning to Web GPU promises an enhanced experience, further modernizing health tech applications.
WebGPU at Google
Google, with Chrome commanding over 60% market share among web browsers, stands to benefit significantly from Web GPU’s success. With recent releases extending Web GPU to Android 12, applications like Google Maps and Google Earth are likely to leverage this advancement, ensuring a more potent user experience.
AI + ML with WebGPU
The fusion of Web GPU with Artificial Intelligence and Machine Learning is gaining momentum. The emergence of Web GPT, a large language model running on Chrome using Web GPU, showcases its application for offline AI processing – a crucial aspect in areas with challenging internet connectivity. With OpenAI’s involvement, the intersection of Web GPU and AI/ML is poised for further exploration.
Computer Graphics Research
Web GPU’s role extends to making graphics programming more accessible. Drawing parallels with Shader Toy, a web platform for WebGL shaders, Web GPU is anticipated to have a similar impact, fostering collaboration and innovation within the computer graphics community.
How to Learn WebGPU?
For those eager to embark on a Web GPU learning journey, two excellent resources stand out – Brandon Jones’s Google Codelab and Gregman’s webgpu-fundamentals.org. These resources comprehensively guide you through creating a Web GPU app from scratch, offering a solid foundation for enthusiasts.
Future of WebGPU
As we gaze into the future, it’s essential to acknowledge that Web GPU, while promising, is still a nascent technology. It brings improvements over WebGL but might not attain the ubiquity of everyday frameworks like ReactJS or Node. Notably, Web GPU currently lacks support for cutting-edge graphics features like Ray Tracing or Mesh Shaders. However, optimism abounds – Web GPU is poised to become the standard graphics API for native apps that prioritize cross-platform compatibility without demanding peak performance.
In conclusion, Web GPU unfolds as a potent force reshaping the landscape of graphics development. Its applications span diverse industries, from design tools and CAD to health technology, research, and AI/ML integration. As we navigate the evolving terrain of technology, the role of Web GPU promises to be both influential and transformative.
Thanks for joining in, and I look forward to hearing your thoughts on Web GPU in the comments below. Until next time!