Jump to content

  • Log In with Google      Sign In   
  • Create Account


fast way of Checking hlsl code


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 lomateron   Members   -  Reputation: 300

Like
0Likes
Like

Posted 05 September 2012 - 03:05 PM

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, 05 September 2012 - 04:07 PM.


Sponsor:

#2 lomateron   Members   -  Reputation: 300

Like
0Likes
Like

Posted 05 September 2012 - 04:08 PM

i

Edited by lomateron, 05 September 2012 - 04:09 PM.


#3 Hyunkel   Members   -  Reputation: 366

Like
0Likes
Like

Posted 06 September 2012 - 06:34 AM

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.

#4 lomateron   Members   -  Reputation: 300

Like
0Likes
Like

Posted 06 September 2012 - 06:40 AM

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.

#5 Hodgman   Moderators   -  Reputation: 27518

Like
0Likes
Like

Posted 06 September 2012 - 06:50 AM

Any good programmer oriented text editor will support adding custom buttons to run user-commands. So you could configure, say PFE or N++ to run FXC and display the output.

Alternatively you could look at a full IDE like fx composer.

#6 lomateron   Members   -  Reputation: 300

Like
0Likes
Like

Posted 06 September 2012 - 07:58 AM

The FX composer of nvidia is figging good, are there more programs like it out there?

#7 Hyunkel   Members   -  Reputation: 366

Like
0Likes
Like

Posted 06 September 2012 - 05:22 PM

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.

#8 lwm   Members   -  Reputation: 1296

Like
0Likes
Like

Posted 07 September 2012 - 01:48 AM

I haven't tried this myself, but Visual Studio 2012 has native support for HLSL and FXC.

current project: Roa


#9 Scoob Droolins   Members   -  Reputation: 238

Like
0Likes
Like

Posted 07 September 2012 - 08:48 AM

Try GPU Shader Analyzer from AMD - besides compiling shaders, you get static performance analysis and asm ouput, which is great for figuring out exactly what your shaders are doing.

#10 Doug Rogers   Members   -  Reputation: 173

Like
0Likes
Like

Posted 07 September 2012 - 04:25 PM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS