Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Issue debugging shaders within Visual Studio 2012

4: Adsense

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
4 replies to this topic

#1 jdub   Members   

459
Like
0Likes
Like

Posted 14 March 2013 - 11:53 PM

I am trying to debug shader source code and step through the shader with breakpoints as would have been done in PIX.  According to MSDN, Visual Studio 2012 should have this functionality integrated within the editor.  However, when I try to debug the shaders for the DynamicShaderLinkage_FX2010 sample (as well as any other directX project including my own) visual studio says that there were "No Symbols Found" for the shader.  I have looked through the MSDN forums and there doesn't seem to be much on this issue.  Anyone else have this issue and been able to solve it?


J.W.

#2 NightCreature83   Members   

4949
Like
0Likes
Like

Posted 15 March 2013 - 03:12 AM

I am trying to debug shader source code and step through the shader with breakpoints as would have been done in PIX.  According to MSDN, Visual Studio 2012 should have this functionality integrated within the editor.  However, when I try to debug the shaders for the DynamicShaderLinkage_FX2010 sample (as well as any other directX project including my own) visual studio says that there were "No Symbols Found" for the shader.  I have looked through the MSDN forums and there doesn't seem to be much on this issue.  Anyone else have this issue and been able to solve it?

Did you compile the shaders with the debug flag as otherwise the HLSL compiler will not generate symbols to debug with.


Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max


#3 Ravyne   Members   

14291
Like
0Likes
Like

Posted 15 March 2013 - 09:19 AM

Firstly, are you using Visual Studio Express? or Pro, Premium, or Ultimate? Shader debugging isn't available in Express.

 

Secondly, what process are you following to start debugging? Its something of a multi-step process.


throw table_exception("(ノ ゜Д゜)ノ ︵ ┻━┻");


#4 jdub   Members   

459
Like
0Likes
Like

Posted 15 March 2013 - 01:39 PM

Yep.  It was the debug flags.  I feel so derp right now


J.W.

#5 Migi0027 (肉コーダ)   Members   

4565
Like
0Likes
Like

Posted 15 March 2013 - 04:52 PM

Yep.  It was the debug flags.  I feel so derp right now

 

Hehe, don't worry, it happens to us all wink.png


FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/cuboidzone.wordpress.com/





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.