Nikolai
Nikolai

Reputation: 1173

Why I can't enable webgpu in Google Chrome?

I'm trying to use webgpu in my web app. I found this guide of how to use WebGL compute feature. I enabled #enable-webgpu-developer-features flag and even run Google Chrome with --enable-unsafe-webgpu option. But still receive null on calling canvas.getContext('webgpu') and navigator.gpu is undefined. When I'm trying to see these demos, I observe TypeError: Cannot read properties of null (reading 'requestDevice')

Are there some hardware requirements, or specific drivers, or any other suggestions?

Upvotes: 0

Views: 8813

Answers (1)

paul
paul

Reputation: 1221

I have a similar problem with Chrome 106, but the demos you link work for me when I use Chrome Canary instead of Chrome. I had to restart the browser after enabling the flag to get most demos to work, but that one in particular worked without it. I suspect it has to do with the Origin Trial of WebGPU.

Upvotes: 2

Related Questions