Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

WebGPUDeviceFilterLists.deviceAllowFilters

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public WebGPUDeviceFilterData[] deviceAllowFilters;

Description

Specifies a list of WebGPUDeviceFilterData parameters to allow WebGPU devices to always use WebGPU API when running Unity applications. This API is only available in the Unity Editor. The list is immutable at runtime.

Each parameter value in each WebGPUDeviceFilterData entry is processed using logical AND operation to determine if the device matches the specified filter. The device is allowed to use WebGPU if its WebGPUDeviceFilterData.browserName, WebGPUDeviceFilterData.browserVersion, WebGPUDeviceFilterData.deviceType values compared with the corresponding comparison operators to the specified filter values, and it meets the other specified filter values.

For WebGPUDeviceFilterData.features, if the device doesn't include any of the filter entries, it is not allowed to use WebGPU.

If you enter the same values in the WebGPUDeviceFilterLists.deviceAllowFilters and WebGPUDeviceFilterLists.deviceDenyFilters lists, Unity ignores the filter.