Windows 10 Mobile Direct3D

假装没事ソ 提交于 2019-12-11 13:55:01

问题


I have a C++ project targeted for Windows Phone 8.1 that uses Direct3D11,

I tried using that project with Windows 10 Mobile device but at fails in the following line:

hr = D3D11CreateDevice(NULL, 
D3D_DRIVER_TYPE_HARDWARE,NULL, 
D3D11_CREATE_DEVICE_DEBUG, 
featureLevels, 
sizeof(featureLevels) / sizeof(*featureLevels), 
D3D11_SDK_VERSION, 
&m_d3dDevice, 
&featureLevel, 
NULL);

returning error code 0x887A002D -> DXGI_ERROR_SDK_COMPONENT_MISSING,

Any idea how i can make this work on a Windows 10 Mobile device (Preferably without migrating the project to a universal application project)?


回答1:


I have found the solution,

This is caused because graphics tools feature is not enabled on the device,

To enable the feature on the mobile device:

1) Open Visual Studio 2015

2) Click Debug -> Graphics -> Start Diagnostics

3) On the mobile device go to Settings -> Updates and install the update



来源:https://stackoverflow.com/questions/37459088/windows-10-mobile-direct3d

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