DirectX 10调试输出不起作用 [英] DirectX 10 debug output not working

查看:173
本文介绍了DirectX 10调试输出不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使DirectX 10的调试输出适用于我的简单C#应用程序. 我已经安装了DirectX SDK,打开了DirectX控制面板,并将应用程序exe添加到列表中.

I cannot make debug output for DirectX 10 to work for my simple C# application. I've installed DirectX SDK, opened DirectX Control Panel and added application exe to list.

在DebugView(当我手动启动应用程序exe时)或Visual Studio 10输出控制台(当我启动Debug)中都没有显示DirectX调试输出.

DirectX debug output was not shown in neither DebugView (when I start application exe manually) or Visual Studio 10 output console (when I start Debug).

我已将SlimDX作为NuGet软件包添加到我的项目中,并且平台设置为x86.

I've added SlimDX to my project as a NuGet package, and the platform is set as x86.

我已经没有足够的想法来完成这项工作了.有人能想到我可以尝试的东西吗?

I've run out of ideas how to make this work. Can someone think of something that I could try?

谢谢.

更新:

当我创建Direct3D9简单示例时,显示了调试. Direct3D10仍然无法正常工作.

When I created Direct3D9 simple example, debug was displayed. Direct3D10 is still not working.

推荐答案

我的经验是使用SharpDX而不是SlimDX,但希望以下内容能够成立.除了安装DirectX SDK并将可执行文件添加到调试列表之外,您还应该:

My experience is with SharpDX rather than SlimDX, but hopefully the following will hold true. In addition to installing the DirectX SDK and adding your executable to the debug list you should also:

  • 打开项目的属性,并将调试>启用本机代码调试"设置为true
  • 使用调试设备创建"标志创建DirectX设备

此外,此帖子建议您可能需要编辑VS设置.

Additionally, This Post suggests you may need to edit you VS settings.

这篇关于DirectX 10调试输出不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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