deviceAllowFilters
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.
읽는 시간 1분최근 업데이트: 8일 전
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public WebGPUDeviceFilterData[] deviceAllowFilters { 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 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.