• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            麒麟子

            ~~

            導(dǎo)航

            <2011年5月>
            24252627282930
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234

            統(tǒng)計(jì)

            常用鏈接

            留言簿(12)

            隨筆分類

            隨筆檔案

            Friends

            WebSites

            積分與排名

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            IDirect3DDevice9::Reset 失敗的原因

            許多時(shí)候,需要處理設(shè)備丟失問題,而通常情況下,RESET會(huì)因?yàn)橐恍┬栴}而導(dǎo)致失敗,下面我就把gamedev上的一貼子翻譯一下,只翻譯中間那小段
            摘自: http://www.gamedev.net/community/forums/topic.asp?topic_id=146731
            1) One of the parameters you pass is probably not possible on the hardware, e.g. a depth buffer format which won't work with the back buffer format.

            你傳入的D3DPRESENT_PARAMETERS和你的硬件不符,可能是深度格式與你的后臺(tái)緩沖格式不匹配。通常情況下我們是將先前的D3DPRESENT_PARAMETERS保存,RESET的時(shí)候傳入,若是這種情況,則不必?fù)?dān)心這個(gè)問題

            2) The debug D3D runtime will tell you exactly "why":

            把DirectX Control Pannel中的Direct3D開為調(diào)試模式,運(yùn)行過后,編譯器的信息提示框里會(huì)輸出原因,多半是因?yàn)槲挥贒3DPOOL_DEFAULT中的內(nèi)容未釋放完而導(dǎo)致的
            a. When you install the DirectX SDK you get the option to install the debug or retail runtime, if you're developing software, always choose debug.

            安裝SDK的時(shí)候,你可以選則是調(diào)式還是運(yùn)行模式,如果你是軟件開發(fā),通常選擇為調(diào)式
            b. Go to the control panel and open the DirectX applet.

            到SDK中把DirectX Control Pannel小程序打開
            c. Go to the Direct3D tab and put the "debug output level" slider to maximum.

            把DirectX Control Pannel中的Direct3D開為調(diào)試模式
            d. Run your application in the debugger (if using MSVC, press F5) and repeat whatever process causes it to fail.
            在調(diào)試狀態(tài)下運(yùn)行你的程序,重復(fù)處理導(dǎo)致你出錯(cuò)的地方
            e. Once it fails, close the app if necessary and return to MSVC, now look in the "output" pane (usually at the bottom). D3D will tell you about everything noteworthy, from information about its DLL being attached to your application, to warnings about things which may harm performance to the full reason why it gave an error.

            如果發(fā)現(xiàn)失敗了,就關(guān)掉調(diào)試,在輸出信息面板中D3D將會(huì)告訴你是什么原因?qū)е履闶〉摹?/div>
            f. If your application creates its D3D device in PURE mode, creating it in non-PURE mode should enable more checking and reporting.

            如果你的程序創(chuàng)建的時(shí)候的D3D設(shè)備是PURE模式,那在創(chuàng)建的時(shí)候改為非PURE模式,這樣你在上面的控制面板中得到的信息會(huì)更多。

             

            posted on 2009-08-11 14:22 麒麟子 閱讀(5370) 評(píng)論(0)  編輯 收藏 引用 所屬分類: DirectX

            久久嫩草影院免费看夜色| 久久久久av无码免费网| 青青青国产成人久久111网站| 久久精品国产91久久麻豆自制 | 久久精品国产亚洲AV香蕉| 久久久久亚洲AV无码专区首JN| 伊人久久综合精品无码AV专区| 国产精品久久自在自线观看| 国产高潮国产高潮久久久91 | 亚洲国产另类久久久精品| 国产精品久久国产精品99盘| 亚洲欧美国产日韩综合久久| 97久久香蕉国产线看观看| 亚洲一级Av无码毛片久久精品| 国产情侣久久久久aⅴ免费| 欧美性大战久久久久久| 精品国产福利久久久| 人妻少妇久久中文字幕| 亚洲国产香蕉人人爽成AV片久久 | 久久综合九色欧美综合狠狠| 狠狠色噜噜狠狠狠狠狠色综合久久| 亚洲精品国精品久久99热| 国内精品久久久久久久久电影网| 久久婷婷激情综合色综合俺也去| 久久精品成人| 国内精品久久久久久久影视麻豆| 久久精品99久久香蕉国产色戒| 久久精品国产男包| 久久国内免费视频| 麻豆精品久久久久久久99蜜桃| 久久有码中文字幕| 亚洲国产精品嫩草影院久久| 人人狠狠综合88综合久久| 久久久受www免费人成| 久久国产精品波多野结衣AV| 亚洲精品国产成人99久久| 久久亚洲精品视频| 丁香五月综合久久激情| 久久综合色区| 久久精品国产亚洲AV香蕉| 久久久噜噜噜久久中文福利|