Jump to content
  • Advertisement
Sign in to follow this  
jazztuffy

debug effect file

This topic is 4321 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

One more question, my code has effect file and when i run my program i get a error at settechnique. I need to debug my effect file and can u guyz direct me in overcoming the errors in fx file. Thank you

Share this post


Link to post
Share on other sites
Advertisement
Does it compile with warnings in EffectEdit?
And make sure that the technique pointer or reference is valid.

Share this post


Link to post
Share on other sites
D3D #22: Using the debug runtimes from the Forum FAQ [wink]

The debug runtimes are pretty good at pointing out what is going wrong with effect handles and so on. Make sure you enable them and watch for any warnings/errors.

EffectEdit is long gone now, but you can try using fxc.exe from the command line - if your effect file contains invalid code then it should barf and give you the gory details.

hth
Jack

Share this post


Link to post
Share on other sites
Another option for finding errors in HLSL files is using an IDE. My personal favorite is NVidia's FX Composer, but theres also ATI's RenderMonkey (I just don't like monkeys). You don't need an NVidia/ATI card to run either of them. They'll highlight the code for you, parse it and check for errors, and even show you a preview of the effect (when it works). Both also include a good number of sample shaders.

Hope this helps.

Share this post


Link to post
Share on other sites
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!