Search code examples
directxlibrariesdirectx-11

Fundamental differences between d3d11.lib and d3dx11.lib


Thanks to StackOverflow, I solved a linker error which has been annoying me for some time. I assumed that the library d3d11 contained the functionality of d3dx11, which led to confusion.

What are the differences between the two libraries? Is d3dx11 only mentions "D3DX utility library" in its description.


Solution

  • For the directX headers, but I think it should be the same for the lib :

    The files include different things. The d3d11.h file includes the core pieces of Direct3D. The d3dx11.h file includes extensions to Direct3D which aren't necessary to a graphics library, but which can come in very handy when writing games or other graphics programs.