Reputation: 2174
In the C++ code (C# solution is OK: I can translate it to pure C++ or C++/CX) I need to check whether the code is working under Windows Phone 10 or not.
Upvotes: 0
Views: 83
Reputation: 28836
Rely on assumes which editions/SKU support which functions is a terrible bad design.
Call the D3D11CreateDevice
call with D3D11_CREATE_DEVICE_DEBUG
in Flags and if it returns DXGI_ERROR_SDK_COMPONENT_MISSING
the debug layer is not avaible and call it again without this debug flag so that it works on Phone/Mobile, too.
Searching for D3D11_CREATE_DEVICE_DEBUG
here on stackoverflow shows this topic on steps how to install the required data on mobile.
Upvotes: 1