Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


deviceDenyFilters

Specifies a list of WebGPUDeviceFilterData parameters to restrict WebGPU devices from using WebGPU API when running Unity applications. This API is only available in the Unity Editor. The list is immutable at runtime.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public WebGPUDeviceFilterData[] deviceDenyFilters { get; set; }

Remarks

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 restricted from using 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.