Version: Unity 6.3 Beta (6000.3)
Language : English
Create a D3D12 Device Filtering asset
D3D12 Device Filtering Asset reference

Configure D3D12 API usage

By default, Unity restricts certain Windows devices known to run Unity applications sub-optimally from using the D3D12 graphics API. However, you might find through testing that some restricted devices actually run your application better with D3D12 API than with D3D11 API. Alternatively, you might want to add further restrictions and prevent some devices from running your application with D3D12 API. Use Allow and Deny Filter Lists to fine tune which devices you want to allow to run your application with D3D12 API.

With Allow Filter List, you can allow certain devices to use D3D12 as the default graphics API to run your application. Alternatively, with the Deny Filter List, you can limit certain devices from using the D3D12 API to run your application. The restricted devices use a fallback graphics API set in the Player settings to run your application. If you don’t include an alternative graphics API, such as D3D11, in your Player settings, your application won’t launch on any devices that meet the rejection criteria. If you set the same values in both Allow and Deny Filter Lists, Unity ignores the criteria defined by those values.

If a device is included in both the Allow and Deny Filter Lists, the Allow Filter takes precedence and the device uses the D3D12 API. You can use these lists to restrict a large category of poorly performing devices from using the D3D12 API, but still allow devices that perform better with D3D12 API to use it. Although you can restrict the use of D3D12 API on a group of devices, you can use the Allow Filter List to enable particular devices from that group to still use D3D12.

To allow Windows devices to always use D3D12 API, use the following steps:

  1. Create a D3D12 Device Filtering Asset. The asset displays three filter lists in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    window.
  2. Expand the Allow Filter List.
  3. Select Add (+). This action adds a new entry to the list.
  4. In the new list entry, enter the specifications of the Windows device that you want to allow to use the D3D12 API.
    A set of parameters is displayed.
  5. Enter the device specifications in the available parameters. All the parameters are optional. For the description of parameters, refer to D3D12 Device Filtering Asset reference.

Windows devices that meet the specifications defined in the parameter values will always use D3D12 API for Unity applications.

To restrict Windows devices from using the D3D12 API, use the Deny Filter List and follow the same steps as earlier.

Additional resources

Create a D3D12 Device Filtering asset
D3D12 Device Filtering Asset reference
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961