Skip to main content
gamedev.net
🔒 Locked

debug effect file

Started by jazztuffy Sep 16, 2006 at 1:44 AM 2 replies 1.5k views
Original Post
jazztuffy
jazztuffy
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
jollyjeffers
jollyjeffers
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
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |
sirob
sirob
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.
Sirob Yes.» - status: Work-O-Rama.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.