The WebGPU Sourcebook: High-Performance Graphics and Machine Learning in the Browser explains how to code web applications that use WebGPU to access the client’s graphics processing unit (GPU). This makes it possible to render graphics at high-speed in a browser and perform computationally-intensive tasks such as machine learning.
The first part introduces WebGPU at a high level, without graphical rendering or computation. The chapters in the second part are focused on graphical rendering. The third part of the book focuses on compute shaders.
- Discusses the classes and functions defined in the WebGPU API and shows how they can be used in practice.
- Explains the theory of graphical rendering and shows how to implement rendering inside a web application.
- Examines the theory of neural networks (machine learning) and shows how to create a web application that trains and executes a neural network.