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
1 Answer
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.
-
\$\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\$– EmanueleJan 22, 2017 at 16:33