Error: program link failed: Failed to create D3D shaders.

668 views
Skip to first unread message

Egon

unread,
Sep 8, 2016, 5:27:48 AM9/8/16
to angleproject
I'm trying to figure out why DLL-s of ANGLE are not working as intended. After compiling ANGLE from source and running hello_triangle.exe I end up with:

program link failed: Failed to create D3D shaders.

However, running it directly with debugger under Visual Studio, it runs fine. Basically, I don't have a good idea how to debug this situation and where the "verbose" debug flags are. (First time diving into ANGLE source.)

Basically, any tips into how to make shader compilation print out more useful information? Or what is the best way to debug this?

PS: I ended up here because golang.org/x/mobile/gl uses ANGLE to provide GLES support on Windows and the examples fail due to the same reason.

NVIDIA Quadro 2000M, Driver Version 21.21.13.7254
Windows 7

(not sure whether any additional information would be useful?)

+ Egon

Egon

unread,
Sep 8, 2016, 8:47:06 AM9/8/16
to angleproject
Michel Braz de Morais sent me an email telling to put D3DCompiler_47.dll together with the executable, and this fixes the issue.

Thanks.

+ Egon

Egon

unread,
Sep 8, 2016, 9:33:32 AM9/8/16
to angleproject
Also, is the actual linking/compiling error in ProgramD3D.cpp@L1435 intentionally hidden? It seems like it contains useful information helpful for figuring out problems. Of course, I can understand that in some cases you may not want to show such information.

+ Egon

Geoff Lang

unread,
Sep 8, 2016, 9:52:15 AM9/8/16
to egon...@gmail.com, angleproject
It should be failing to link and generating a GL error in HLSLCompiler::initialize.  If you hook up KHR_debug you could see an error message about failing to load the D3D compiler DLL.

--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Geoff Lang

unread,
Sep 8, 2016, 9:55:27 AM9/8/16
to egon...@gmail.com, angleproject
The error is GL_INVALID_OPERATION which I think is a bit weak.  I'm going to change it to GL_OUT_OF_MEMORY.

Jamie Madill

unread,
Sep 8, 2016, 10:21:35 AM9/8/16
to Geoff Lang, egon...@gmail.com, angleproject
Depending on which version of the Windows SDK you might have installed, the build might have issues finding the DLL to copy into the output path. I'd recommend installing the Windows 10 SDK standalone installer:


If that doesn't work we should fix it.

To unsubscribe from this group and stop receiving emails from it, send an email to angleproject+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages