Sign in to follow this  

[Solved] Shader compilations fails with D3DXSHADER_NO_PRESHADER

Recommended Posts

Hello, the title pretty much says it all: All calls to D3DXCompileShader() fail when I add the flag D3DXSHADER_NO_PRESHADER. The error buffer is empty, the debug output is empty, even with the Warning Level at maximum and Maximum Validation enabled. The error code is D3DERR_INVALIDCALL. As soon as I remove the flag, all shaders compile fine. What am I doing wrong here? System: WinXP SP2, August2006 SDK, NVidia Geforce 7800GT. I encountered this behaviour since the first 2004 SDK and have been able to reproduce it with some SDK versions inbetween. I googled for it but apparently I'm the only one with this error. Some other people seem to use this flag without problems. Any hint appreciated. [edit] Solved. Apparently naked Shaders without a effect framework around them don't have PreShaders. So any call to D3DXCompileShader() with the PRESHADER flag is turned down. Some hint in the error message buffer would have been nice, though. Bye, Thomas [Edited by - Schrompf on October 2, 2006 3:29:45 AM]

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