I was able to enable debugging info for directX variables like LPD3DXMESH etc.
Normally it just shows IUnknown and a some pointer value, but if additional debugging is enabled its possible to see more detailed info abou开发者_Go百科t the structure.
Problem is that I lost the project and now I can't remember how to enable this type of debugging again.
Please help me find it again.
Thank you!
First of all, have you enabled DirectX debug mode? If not, go to the DirectX Control Panel under "Microsoft DirectX SDK/DirectX Utilities" in the Start menu and enable debug mode (Check the checkbox "Use Debug Version of Direct3D").
Next, make sure that your projects build configuration is set to Debug. In Visual Studio, choose Build > Configuration Manager and change the configuration of your project to Debug.
Finally, make sure to define D3D_DEBUG_INFO as described in Enabling Direct3D Debug Information on MSDN
精彩评论