“启用图形捕获”在使用DirectX组件的C#项目中 [英] "Enable Graphics Capture" in C# projects with DirectX components

查看:98
本文介绍了“启用图形捕获”在使用DirectX组件的C#项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您使用DirectX C ++ dll进行渲染,是否有任何方法可以在C#metri 应用的VS Developer Preview中启用新的DirectX调试功能? (就我而言,这是SharpDX包装库 -
http://code.google.com / p / sharpdx / )。

Is there any way to enable the new DirectX debugging features in the VS Developer Preview from a C# metri app if you're using a DirectX C++ dll for rendering? (In my case, that's the SharpDX wrapper library - http://code.google.com/p/sharpdx/).

推荐答案

VS Express开发人员预览版中没有该选项,因此您必须手动添加该选项到你的vcproj文件。

The option is not available from the VS Express developer preview, so you have to add it manually to your vcproj file.

只需添加正确的Debug | AnyCpu PropertyGroup:

Just add inside the correct Debug|AnyCpu PropertyGroup:

< PropertyGroup Condition ="'

<PropertyGroup Condition="'

< br>

(配置)|


(平台)'=='调试| AnyCpu'">

    ... ...
    < EnableUnmanagedDebugging> true< / EnableUnmanagedDebugging>

< / PropertyGroup>



(Platform)' == 'Debug|AnyCpu'">
    ...
    <EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>
</PropertyGroup>

您应该能够查看非托管调试消息。

You should be able to view unmanaged debugging messages.


这篇关于“启用图形捕获”在使用DirectX组件的C#项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆