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. Dismiss Notice

Shader error in '[Custom Shader Here]': D3D11 shader compiler could not be loaded

Discussion in 'Unity Build Automation' started by Leuthil, Jan 26, 2015.

  1. Leuthil

    Leuthil

    Joined:
    Jul 26, 2013
    Posts:
    97
    I just started trying the Unity Cloud build and my Web build came out solid pink. I recognized that this is the default pink shader used when the shader has an error. All the shaders in my game are custom so it makes sense that the entire game is pink. That's when I really checked the build logs and noticed this error for all of my custom shaders:
    [Unity] Shader error in '[Custom Shader Here': D3D11 shader compiler could not be loaded
    I'm just confused about what this error means because when I do a Web build locally in Unity everything comes out fine with no errors.

    Anyone have any idea what this means and how I can fix it? I can post the shader if necessary.
     
  2. Leuthil

    Leuthil

    Joined:
    Jul 26, 2013
    Posts:
    97
    Nevermind. I just changed my project to not use DX11 since I don't need it and now it works. I guess Unity Cloud doesn't support DX11 shaders yet?
     
  3. obilang

    obilang

    Joined:
    Feb 1, 2015
    Posts:
    5
    Hi,I have met the same problem with you.Can you tell me how to not use DX11?Thank you~
     
  4. Leuthil

    Leuthil

    Joined:
    Jul 26, 2013
    Posts:
    97
    To enable DirectX 11 for your game builds and the editor, set “Use DX11” option in Player Settings. Unity editor needs to be restarted for this to take effect.

    Note that DX11 requires Windows Vista or later and at least a DX10-level GPU (preferably DX11-level). Unity editor window title has “<DX11>” at the end when it is actually running in DX11 mode.

     
    psykojello2 likes this.
  5. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
    Thanks for the explanation! Do you use Unity 5 beta or does this problem also occur on Unity 4x?
     
  6. Leuthil

    Leuthil

    Joined:
    Jul 26, 2013
    Posts:
    97
    At the time I was using Unity 4.6.1 editor but now I just upgraded to 4.6.2 editor. I believe there is the same error though if DX11 mode is on. In my Unity Cloud settings I have always had it set to "Always Use Latest 4.x (Non Beta)".
     
    David-Berger likes this.
  7. psykojello2

    psykojello2

    Joined:
    Jul 19, 2013
    Posts:
    37
    Thanks for the info! Helped me a bunch :)
     
  8. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,739
    i'm using unity 5.4b16 and getting this error:
    D3D11 shader compiler could not be loaded (on xboxone)

    Disabling or enabling dx11 on project settings seem to have no impact at all. Any ideas how to fix this?
     
  9. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    I'm getting this on Unity 5.6.5p2. Any clues? Turning off or on DX11 has no impact.