• Advertisement
Sign in to follow this  

fast way of Checking hlsl code

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

So PIX is made to check code that is correct but makes things you don't know, but i want to spot mistakes in my code,because it does not compile, is there any program to do that? Edited by lomateron

Share this post


Link to post
Share on other sites
Advertisement
You can compile your hlsl shaders with fxc, which will output compile errors.

What are you currently using to compile your shaders though?
There should always be a way to get the compile error and warning messages.

Share this post


Link to post
Share on other sites
Yes i know that I can do that too but I only wanted to know if there was a program that checks as I write the code.

Share this post


Link to post
Share on other sites
There's ATI Rendermonkey, which is similar to FX composer.
Both have been discontinued though.

Personally, I'd hook up fxc to your editor of choice.
It's easy, fast, and the error messages are easy to understand.

Share this post


Link to post
Share on other sites
In Visual Studio, you can associate the fxc compiler with your hlsl code so that when you hit build, hlsl code will compile just like your other other code. In the output window, you can then go to the error lines.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement