• <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)航

            <2009年8月>
            2627282930311
            2345678
            9101112131415
            16171819202122
            23242526272829
            303112345

            統(tǒng)計

            常用鏈接

            留言簿(12)

            隨筆分類

            隨筆檔案

            Friends

            WebSites

            積分與排名

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            IDirect3DDevice9::Reset 失敗的原因

            許多時候,需要處理設(shè)備丟失問題,而通常情況下,RESET會因為一些小問題而導(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和你的硬件不符,可能是深度格式與你的后臺緩沖格式不匹配。通常情況下我們是將先前的D3DPRESENT_PARAMETERS保存,RESET的時候傳入,若是這種情況,則不必擔(dān)心這個問題

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

            把DirectX Control Pannel中的Direct3D開為調(diào)試模式,運行過后,編譯器的信息提示框里會輸出原因,多半是因為位于D3DPOOL_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的時候,你可以選則是調(diào)式還是運行模式,如果你是軟件開發(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)下運行你的程序,重復(fù)處理導(dǎo)致你出錯的地方
            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將會告訴你是什么原因?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)建的時候的D3D設(shè)備是PURE模式,那在創(chuàng)建的時候改為非PURE模式,這樣你在上面的控制面板中得到的信息會更多。

             

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

            久久久无码精品亚洲日韩按摩| 久久精品国产免费| 久久天天婷婷五月俺也去| 亚洲七七久久精品中文国产| 亚洲国产精品无码久久| 久久精品国产99久久久香蕉| 久久精品国产亚洲αv忘忧草 | 2021国产精品午夜久久| 久久精品亚洲精品国产色婷| 久久久久亚洲AV综合波多野结衣 | 成人国内精品久久久久一区| 久久亚洲视频| 7国产欧美日韩综合天堂中文久久久久| 欧美无乱码久久久免费午夜一区二区三区中文字幕 | 亚洲欧洲精品成人久久曰影片 | 久久亚洲春色中文字幕久久久| 久久精品国产精品亜洲毛片 | 国产成人精品免费久久久久| 久久久久久国产a免费观看黄色大片| 欧美久久综合性欧美| 久久久亚洲欧洲日产国码aⅴ| 日本WV一本一道久久香蕉| 国产精品欧美久久久久无广告| 久久夜色精品国产亚洲| 久久99国产乱子伦精品免费| 蜜臀av性久久久久蜜臀aⅴ| 色综合久久88色综合天天 | 久久国产成人亚洲精品影院 | 久久国产精品视频| 麻豆精品久久久一区二区| 99久久精品国产高清一区二区| 精品无码久久久久久尤物| 久久精品www人人爽人人| 77777亚洲午夜久久多喷| 国产精品久久久久jk制服| 久久99精品久久久久久hb无码| 久久99国内精品自在现线| 欧美久久综合性欧美| 国产免费久久精品99久久| 久久国产视屏| 久久无码国产专区精品|