游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2547|回复: 3

directx3d调试HLSL问题。。。。

[复制链接]

1

主题

10

帖子

10

积分

新手上路

Rank: 1

积分
10
发表于 2007-9-14 14:19:00 | 显示全部楼层 |阅读模式
各位看官帮忙看看:

问题:

我在FX文件中设置的断点无效。
我翻了SDK说明文档中的说明:
Put a breakpoint in your shader code
The shader debugger will give you the following message: "The breakpoint will not currently be hit. No executable code is currently loaded at this location."

You need to do one or more of the following:
Enable Direct3D shader debugging from the control panel. See Enable Debug Mode from the Control Panel. The shader will warn you with a message box if this is not enabled.
Build a Visual Studio .NET debug project.
Install the DirectX SDK to get the debug or reference Dlls and the shader debugger.
The shader debugger warns you with a message box if the debug or reference Dlls are not installed.

Launch the debugger from Debug, Direct3D, Start With Direct3D Debugging.
Use a shader/effect compile flag compatible with debugging.
If you don't compile the with D3DXSHADER_DEBUG | D3DXSHADER_SKIPOPTIMIZATION, the debugger will warn you with a message box.

Use a device compatible with debugging.
The debugger warns you if you try to use a HWVP device with a vertex shader, or a hardware abstraction layer (HAL) device with a pixel shader.

我检测了我的设置没有问题,还是不行。

还有一个问题是: 就是在VS2005中,我一点Start With Direct3D Debugging只是编译,并没有启动调试。。。
我只能按F5启动调试。。。。

我机子上安装了SDK8, SDK9(Apirl,2006),SDK9(Apirl,2007)....很奇怪,安装SDK9(Apirl,2006)这个版本才能在VS2005中看到Direct3D这个菜单项。。。

各位看官帮忙看看~~~
  [em3] [em3]

6

主题

390

帖子

400

积分

中级会员

Rank: 3Rank: 3

积分
400
发表于 2007-9-14 17:59:00 | 显示全部楼层

Re:directx3d调试HLSL问题。。。。

调试也很辛苦,还得用reference device,还不如自己output结果,或者用nvPerfHud。VS2005可能对hlsl调试支持有问题

1

主题

10

帖子

10

积分

新手上路

Rank: 1

积分
10
 楼主| 发表于 2007-9-14 20:56:00 | 显示全部楼层

Re:directx3d调试HLSL问题。。。。

呵呵,谢谢。。问一下
HLSL,那你现在用的IDE是啥,VC6.0 VC2003? 断点设置有效吗? 我猜估计是IDE的问题。。。。狂抓中。。

0

主题

1

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2007-9-20 10:43:00 | 显示全部楼层

Re:directx3d调试HLSL问题。。。。

兄弟啊,我也是出现这种问题啊,不知道你解决了没有啊
好象.net2005不支持Shader Debugger,在SDK中也只提及.net2002和.net2003,真是搞不懂啊
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-21 17:54

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表