【D3D补遗】三 硬件支持

Posted on 2008-12-04 23:34  活着就是幸福  阅读(242)  评论(0编辑  收藏  举报
1. IDirect3D9::CheckDeviceFormat
检查surface格式是否可用作texture.
检查surface格式是否可用作texture和render-target.
检查surface格式是否可用作depth/stencil buffer.
检查depth buffer和depth/stencil格式支持。

2. IDirect3D9::CheckDeviceType
检查硬件加速能力
检查构造交换链能力
检查当前显示模式能力。

3. IDirect3D9::CheckDepthStencilMatch
检查depth-stencil buffer 和render-target format兼容性。
之前必须调用IDirect3D9::CheckDeviceFormat先检查两者能力。