Use Allow Filters and Deny Filters lists to fine tune which browsers you want to allow to run your application with the WebGPU API.
First, you need to set up a WebGPU Device Filter asset. Refer to Create a WebGPU Device Filter asset for instructions.
To allow browsers to always use the WebGPU API, use the following steps:
Browsers that meet the specifications defined in the parameter values use the WebGPU API for Unity applications.
When the Allow Filters list has any entries, a browser must match an Allow entry to use WebGPU. Any browser that doesn’t match falls back to the next graphics API. Filter by Browser Engine to match every browser built on that engine. Use Browser Name only to target a specific brand. For details, refer to Filter list parameters.
For example, if you set up the following:
In this case, the Allow Filters list includes all Chromium-based browsers (Chrome, Edge, Opera, and so on) whose engine version is 146 or newer.
To restrict browsers from using the WebGPU API, follow the steps in Allow browsers to always use WebGPU API but use the Deny Filters list instead of the Allow Filters list. Because Browser Name rules take precedence over Browser Engine rules, you can allow a whole engine and still deny a specific browser brand that has a known issue.
For example, if you specify:
In this case, the Deny Filters list restricts all devices that have all of the following: