Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question Editor D3D11 vs D3D12 'compiling'

Discussion in 'Shaders' started by Goularou, Apr 1, 2023.

  1. Goularou


    Oct 19, 2018
    Using 2022.2, with DX12 installed in the Player Settings, and URP
    and despite adding #pragma use_dxc (but I dont believe it would influence point2 below)

    1) I keep having errors marked "(on d3d11)"

    2) compiling option SHADER_API_D3D11 will be applied, while SHADER_API_D3D12 will not.

    So it feels like DX12 is not be used, at least on the editor.

    Any ideas?

    PS: also, while the performance is definitely there, I have no issues on wait time for compilation (on the editor) which is unconsistent with posts I have seen on this topic. Am I missing an Editor vs Build thing here?
    Last edited: Apr 3, 2023
  2. aleksandrk


    Unity Technologies

    Jul 3, 2017
    Shaders on D3D11 and D3D12 currently share the data. Because of this, SHADER_API_D3D12 is non-existent.
    It's still using D3D12 if you have it as the top option in the Player settings.
    Goularou likes this.