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

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.

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?

Hi,I have met the same problem with you.Can you tell me how to not use DX11?Thank you~

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 “” at the end when it is actually running in DX11 mode.

1 Like

Thanks for the explanation! Do you use Unity 5 beta or does this problem also occur on Unity 4x?

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)”.

1 Like

Thanks for the info! Helped me a bunch :slight_smile:

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?

I’m getting this on Unity 5.6.5p2. Any clues? Turning off or on DX11 has no impact.

1 Like