Create Swap Chain Failed

ε祈祈猫儿з 提交于 2019-12-06 12:04:17

You didn't show the entire D3D11CXreateDeviceAndSwapChain() call, so I can just guess -- did you heed that paragraph from the docs?

If you set the pAdapter parameter to a non-NULL value, you must also set the DriverType parameter to the D3D_DRIVER_TYPE_UNKNOWN value. If you set the pAdapter parameter to a non-NULL value and the DriverType parameter to the D3D_DRIVER_TYPE_HARDWARE value, D3D11CreateDeviceAndSwapChain returns an HRESULT of E_INVALIDARG.

Easy to get trapped by that one, since "hey, I want the device to use hardware support" :-)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!