Set of parameters used to define a WebGPU device or group of WebGPU devices.
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.
| Property | Description |
|---|---|
| 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. |
| 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. |
| Constructor | Description |
|---|---|
| WebGPUDeviceFilterLists | Create a WebGPUDeviceFilterLists. |
| Method | Description |
|---|---|
| EnsureValidOrThrow | Ensures all filters defined in WebGPUDeviceFilterLists.deviceDenyFilters, WebGPUDeviceFilterLists.deviceAllowFilters are valid. This API is only available in the Unity Editor. |
| Property | Description |
|---|---|
| hideFlags | Controls whether the object is hidden, saved with the scene, and editable by the user. |
| name | The name of the object. |
| Method | Description |
|---|---|
| GetEntityId | Gets the EntityId of the object. |
| GetHashCode | Returns the hash code for the object. |
| ToString | Returns the name of the object. |
| Method | Description |
|---|---|
| Destroy | Removes a GameObject, component, or asset. |
| DestroyImmediate | Destroys the specified object immediately. Use with caution and in Edit mode only. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindAnyObjectByType | Retrieves any active loaded object of Type T. |
| FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
| Instantiate | Clones the object original and returns the clone. |
| InstantiateAsync | Captures a snapshot of the original object that's related to another GameObject and obtains an AsyncInstantiateOperation instance of the resulting objects. |
| Operator | Description |
|---|---|
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |
| operator == | Compares two object references to see if they refer to the same object. |