Skip to content

Instantly share code, notes, and snippets.

@davidar
Created December 28, 2025 12:55
Show Gist options
  • Select an option

  • Save davidar/2bbc7399f3aa2523efb3637dad2b0d50 to your computer and use it in GitHub Desktop.

Select an option

Save davidar/2bbc7399f3aa2523efb3637dad2b0d50 to your computer and use it in GitHub Desktop.
Enable WebGPU on Flatpak Chrome (Linux)

Enable WebGPU on Flatpak Chrome (Linux)

WebGPU isn't enabled by default on Linux Chrome. Here's how to enable it for Flatpak Chrome.

Quick Setup

Create the config file at ~/.var/app/com.google.Chrome/config/chrome-flags.conf with these contents:

--enable-unsafe-webgpu
--ozone-platform=x11
--use-angle=vulkan
--enable-features=Vulkan,VulkanFromANGLE

Then restart Chrome.

What the flags do

  • --enable-unsafe-webgpu - Enables WebGPU API
  • --ozone-platform=x11 - Required because Vulkan ANGLE isn't compatible with Wayland
  • --use-angle=vulkan - Use Vulkan backend for ANGLE
  • --enable-features=Vulkan,VulkanFromANGLE - Enable Vulkan features

Notes

  • This runs Chrome under XWayland instead of native Wayland
  • Make sure your graphics drivers are up to date
  • Intel Gen12+ GPUs have WebGPU enabled by default in Chrome 144+

Test it

Visit compute.toys to test WebGPU shaders.

References


Tested on Fedora Silverblue with Chrome Flatpak (com.google.Chrome) version 143.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment