1
\$\begingroup\$

What do i have to include to use the D3DX11CompileFromFile() function on DirectX11? I'm using visual studio 2015 and reading the "3D Game programming guide" (Frank Luna) and i'm having problem using that function, any solutions? I read online that is not usable anymore and that now i have to use the D3DCompileFromFile() function, but i have no idea how to do it

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

D3DX11async.h, according to the documentation. Note that the documentation also specifies the function is deprecated in Windows 8, and entirely usable in Windows store applications, and that may be why you are having trouble.

You should use D3DCompileFromFile instead, as you've read on the internet. It's parameters are nearly identical to the set of parameters to D3DX11CompileFromFile, so with very few modifications you should be able to simply replace one with the other.

\$\endgroup\$
1
  • \$\begingroup\$ Josh Petrie♦ thanks for the help, i solved by using the D3DCompileFromFile function I had to #include <d3dcompiler.h> to make it work \$\endgroup\$
    – Emanuele
    Jan 22, 2017 at 16:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .