游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1709|回复: 0

不能在PIX里DEBUG Pixel Shader? Can't Debug Pixel Shader in PIX

[复制链接]

7

主题

26

帖子

26

积分

注册会员

Rank: 2

积分
26
发表于 2008-11-16 17:47:00 | 显示全部楼层 |阅读模式
为什么有时候我不能在PIX里DEBUG Pixel Shader呢?
Why sometimes I can't debug Pixel Shader in PIX ?

我在SURFACE面板上右键点击“Debug this Pixel”,有时候我只得到一个没有“Debug Pixel”选项的结果:
I right-clicked on the surface and select "Debug this Pixel", sometimes I got only one result without "Debug Pixel" option in the Debugger Panel:

------------------------------
Final framebuffer value
------------------------------


但是有时候我又可以正常Debug,出现以下画面:
And sometimes I got this, with which I can continue debugging:

----------------------------------------------------------------------------
Event 1226: IDirect3DDevice9:rawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, 24, 0, 12)Primitive 12 of 12

Vertex Shader:0x030527E8
Debug Vertex 0
Debug Vertex 1
Debug Vertex 2

Pixel Shader:0x03052778
Debug Pixel (230, 186)
-----------------------------------------------------------------------------


为什么啊?
Why?

我已经用D3DXSHADER_DEBUG 设置好了我的程序
I've set D3DXSHADER_DEBUG in my App,
而且也在“DirectX Control Panel”这样设置好了:
and I've set the "DirectX Control Panel" as:

1. Use Debug Version
2. Enable Sahder Debugging
3. Debug Output Level=More

还有的是,有时候就连Vertex Shader也不能正常Debug,跳出一个错误消息框出来。
What's more, Vertex Shader debugging doesn't work neither with a error message box prompted.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-20 21:58

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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