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

            麒麟子

            ~~

            導航

            <2009年5月>
            262728293012
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            統計

            常用鏈接

            留言簿(12)

            隨筆分類

            隨筆檔案

            Friends

            WebSites

            積分與排名

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            IDirect3DDevice9::Reset 失敗的原因

            許多時候,需要處理設備丟失問題,而通常情況下,RESET會因為一些小問題而導致失敗,下面我就把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的時候傳入,若是這種情況,則不必擔心這個問題

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

            把DirectX Control Pannel中的Direct3D開為調試模式,運行過后,編譯器的信息提示框里會輸出原因,多半是因為位于D3DPOOL_DEFAULT中的內容未釋放完而導致的
            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的時候,你可以選則是調式還是運行模式,如果你是軟件開發,通常選擇為調式
            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開為調試模式
            d. Run your application in the debugger (if using MSVC, press F5) and repeat whatever process causes it to fail.
            在調試狀態下運行你的程序,重復處理導致你出錯的地方
            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.

            如果發現失敗了,就關掉調試,在輸出信息面板中D3D將會告訴你是什么原因導致你失敗的。
            f. If your application creates its D3D device in PURE mode, creating it in non-PURE mode should enable more checking and reporting.

            如果你的程序創建的時候的D3D設備是PURE模式,那在創建的時候改為非PURE模式,這樣你在上面的控制面板中得到的信息會更多。

             

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

            国产精品免费久久久久影院 | 欧洲人妻丰满av无码久久不卡| 一本色道久久88综合日韩精品| 伊人久久成人成综合网222| 久久成人小视频| 国产精品一区二区久久精品| 久久国产精品一区| 九九久久自然熟的香蕉图片| 久久夜色精品国产噜噜麻豆| 国产精品18久久久久久vr| 色综合久久精品中文字幕首页| 国产免费久久精品99re丫y| 国产精品久久永久免费| 国产激情久久久久影院| 欧美亚洲色综久久精品国产| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | Xx性欧美肥妇精品久久久久久| 亚洲欧美成人久久综合中文网 | 久久久99精品成人片中文字幕 | 久久精品国产精品亚洲人人| 久久久免费精品re6| 伊人久久精品影院| 久久99亚洲综合精品首页| 一本一道久久综合狠狠老| 久久久久这里只有精品 | 久久久久亚洲精品无码蜜桃| 免费一级欧美大片久久网| 欧美精品一区二区精品久久| 亚洲精品无码久久久久| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 99久久99久久精品国产片果冻| 97精品依人久久久大香线蕉97| 久久久噜噜噜久久| 国产免费久久久久久无码| 青青青国产精品国产精品久久久久| 久久w5ww成w人免费| 午夜精品久久久久久久久| 99久久国产综合精品女同图片 | 国产高潮国产高潮久久久91 | 久久无码人妻一区二区三区午夜| 久久五月精品中文字幕|