How to enable web GPU when build Chromium

231 views
Skip to first unread message

Hưng Phạm

unread,
Aug 9, 2024, 12:19:46 PM8/9/24
to Chromium-dev

When building Chromium v127, I ran this JavaScript command in the console:

navigator.gpu.requestAdapter({ powerPreference: "high-performance" });

But the result returned is "No available adapters," which causes an error when accessing https://toji.github.io/webgpu-test/. I have tried flags like --enable-unsafe-webgpu --enable-features=Vulkan,UseSkiaRenderer, but they did not fix the issue.

Meanwhile, the same version in Chrome returns different information.

How can I build Chromium to use WebGPU?

Thank you very much.

Reply all
Reply to author
Forward
0 new messages