Documentation

Unity Engine

Unity Engine

WebGPUDeviceFilterLists

Set of parameters used to define a WebGPU device or group of WebGPU devices.
Read time 4 minutesLast updated 17 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
  • Inherits from: Object
public sealed class WebGPUDeviceFilterLists : Object

Remarks

Specify a list of parameters to identify a WebGPU device or set of WebGPU devices. Enter values for one or multiple parameters. The parameter values are processed using logical AND operation to check if the device properties match with all the specified values.
Unity ignores the filter if all parameters are empty.

Constructors

Constructor

Description

WebGPUDeviceFilterLists(System.String)Create a WebGPUDeviceFilterLists.

Properties

Property

Description

deviceAllowFiltersSpecifies 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.
deviceDenyFiltersSpecifies 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.

Methods

Method

Description

EnsureValidOrThrowEnsures all filters defined in WebGPUDeviceFilterLists.deviceDenyFilters, WebGPUDeviceFilterLists.deviceAllowFilters are valid. This API is only available in the Unity Editor.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.