At the time of writing, WebGPU is well supported on Windows and Mac, but Linux support is still in development. For the current status of WebGPU support in various browsers and platforms, see the WebGPU implementation status. This guide helps you set up WebGPU on your machine.
Windows
On Windows, WebGPU is available by default in the most recent versions of:
-
Google Chrome
-
Microsoft Edge
-
Mozilla Firefox
MacOS
On macOS, WebGPU is available by default in the most recent versions of:
-
Safari — requires at least macOS Tahoe
-
Google Chrome
-
Mozilla Firefox
|
On macOS versions older than macOS Tahoe,
you must enable WebGPU in Firefox manually by going to |
Linux
WebGPU support on Linux is still in an experimental state and requires some manual setup on both Chrome and Firefox.
Google Chrome on Linux
To enable WebGPU in Google Chrome on Linux, follow these steps:
-
Make sure that you have the latest version of Google Chrome installed. WebGPU is under active development, so using the latest version ensures that you have the most recent features and bug fixes.
-
Open Chrome and navigate to
chrome://flags/. Enable these feature flags:-
Set "Unsafe WebGPU Support" flag to "Enabled".
-
Set "Vulkan" to "Enabled"
You can also enable WebGPU by launching Chrome with the command-line flags.
google-chrome --enable-unsafe-webgpu --use-vulkanIf you run into issues with WebGPU on X11, try using Wayland, because WebGPU support in Chrome on Linux is better on Wayland. To check what you’re using, use the following command:
echo $XDG_SESSION_TYPEIf the output is
wayland, you’re good to go. If it’sx11, you need to log out and log back in using a Wayland session.
-
-
Restart Chrome to apply the changes.
-
You may see a banner warning that you’re using an unsupported command-line flag (
--enable-unsafe-webgpu). You can ignore this warning. -
If Chrome won’t launch, try launching it with
--ozone-platform=x11. When running wayland, the "ozone platform" will default towayland, but Vulkan can’t be enabled then, so it needs to be forced back into x11 mode.google-chrome --ozone-platform=x11
-
How to check if WebGPU is working
The easiest way to verify that everything is set up correctly is to visit the WebGPU report. This page provides information about your browser’s WebGPU support and the underlying adapter capabilities. If WebGPU is supported, the page shows several tables detailing your GPU adapter information, supported device limits, and available features. These tables help you understand the specifics of your hardware’s WebGPU capabilities.
|
If the adapter is listed as "swiftshader", your browser is using a software renderer instead of your system’s GPU. Although a software renderer allows you to use WebGPU, performance will be significantly lower because everything is running on the CPU. |
You can also check:
-
The LuciadRIA Device support sample, which gives you more information about the browser’s WebGPU support, in the context of LuciadRIA.
-
The official WebGPU samples page.
-
The address bar commands
chrome://gpuin Chrome orabout:supportin Firefox. They provide detailed information about the graphics status of your browser.
Troubleshooting
If you run into issues with WebGPU, consider these troubleshooting steps:
-
Ensure that your graphics drivers are up-to-date. Outdated drivers can lead to compatibility issues with WebGPU.
-
Check the browser’s console for any error messages related to WebGPU. These messages can provide insight into what might be going wrong.
-
If you’re using Chrome, see https://developer.chrome.com/docs/web-platform/webgpu/troubleshooting-tips.