Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Direct3D feature level 11.1 #903

Open
wants to merge 2 commits into
base: winappsdk/main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}

D3D_FEATURE_LEVEL featureLevels[7] { 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