Skip to content

Commit

Permalink
Set Direct3D feature levels from 11.1 to 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Taehui committed Oct 16, 2023
1 parent 04f9fc4 commit 72ab153
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions winrt/lib/drawing/CanvasDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ namespace ABI { namespace Microsoft { namespace Graphics { namespace Canvas
deviceFlags |= D3D11_CREATE_DEVICE_DEBUG;
}

auto featureLevels = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_1, D3D_FEATURE_LEVEL_10_0, D3D_FEATURE_LEVEL_9_3, D3D_FEATURE_LEVEL_9_2, D3D_FEATURE_LEVEL_9_1 };
ComPtr<ID3D11Device> createdDevice;
if (SUCCEEDED(D3D11CreateDevice(
NULL, // adapter
driverType,
NULL, // software handle
deviceFlags,
NULL, // feature level array
0, // feature level count
featureLevels, // feature level array
ARRAYSIZE(featureLevels), // feature level count
D3D11_SDK_VERSION,
&createdDevice,
NULL,
Expand Down

0 comments on commit 72ab153

Please sign in to comment.