Skip to content

Commit

Permalink
chore: D3D11 GPU is no longer preferred
Browse files Browse the repository at this point in the history
fix #490
  • Loading branch information
MistEO committed Dec 20, 2024
1 parent f1c64a1 commit 6f97c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaaUtils/GpuOption/GpuOptionWin32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ std::optional<int> perfer_gpu()
continue;
}

hr = D3D12CreateDevice(dxgi_adapter, D3D_FEATURE_LEVEL_11_0, __uuidof(ID3D12Device), nullptr);
hr = D3D12CreateDevice(dxgi_adapter, D3D_FEATURE_LEVEL_12_0, __uuidof(ID3D12Device), nullptr);
if (FAILED(hr)) {
LogWarn << "adapter not support D3D12 with D3D_FEATURE_LEVEL_11_0, skip" << VAR(adapter_index) << VAR(adapter_desc);
LogWarn << "adapter not support D3D12 with D3D_FEATURE_LEVEL_12_0, skip" << VAR(adapter_index) << VAR(adapter_desc);
continue;
}

Expand Down

0 comments on commit 6f97c37

Please sign in to comment.