Sign in to follow this  
n3Xus

[DX10] Release build problems and effects

Recommended Posts

Hello, On my friends PC, which doesn't have the DX SDK, the D3DX10CreateEffectFromFileA function always fails with E_FAIL. It crashes before it fills the error blob or it doesn't even have anything it in. These are the libs I link: DxErr.lib d3dx10.lib d3d10.lib DXGI.lib I disable all debug flags for device and HLSL flags. Any ideas what I could've missed? Second: I'm trying to get D3D10CreateEffectFromMemory to work and try to load effects with this, but I get E_FAIL always (I compile them with the fxc tool). I've read somewhere that this tool is buggy, and that I should create the effect with D3DX10CreateEffectFromFile and then save the compiled effect to file (something like that). The problem is that I can't find a way to get the compiled effect and save it to the file.

Share this post


Link to post
Share on other sites
Quote:
Original post by n3Xus
Hello,

On my friends PC, which doesn't have the DX SDK, the D3DX10CreateEffectFromFileA function always fails with E_FAIL. It crashes before it fills the error blob or it doesn't even have anything it in.
These are the libs I link:
DxErr.lib
d3dx10.lib
d3d10.lib
DXGI.lib
I disable all debug flags for device and HLSL flags. Any ideas what I could've missed?

Second: I'm trying to get D3D10CreateEffectFromMemory to work and try to load effects with this, but I get E_FAIL always (I compile them with the fxc tool). I've read somewhere that this tool is buggy, and that I should create the effect with D3DX10CreateEffectFromFile and then save the compiled effect to file (something like that). The problem is that I can't find a way to get the compiled effect and save it to the file.


Do the friend PC have the SAME D3DX bimonthly update? This is a common error... (make him update its directx through the installer used by microsoft)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this