Jump to content
  • Advertisement
Sign in to follow this  
Schrompf

[Solved] Shader compilations fails with D3DXSHADER_NO_PRESHADER

This topic is 4312 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!