You can choose to set DirectX11 (DX11) or DirectX12 (DX12) as your default Graphics API in the Editor or Standalone Player. To do that:
Open the Player settingsSettings that let you set various player-specific options for the final game built by Unity. More info
See in Glossary (menu: Edit > Project Settings > Player).
In the Other Settings > Rendering section, disable the Auto Graphics API for a platform (Windows/Mac/Linux) option.
Select the Add (+) button, then select DirectX11 or DirectX12 from the list of the supported Graphics APIs.