From 6f97c37b32b3122f336da6b56f54e8093d6dae24 Mon Sep 17 00:00:00 2001 From: MistEO Date: Sat, 21 Dec 2024 02:02:47 +0800 Subject: [PATCH] chore: D3D11 GPU is no longer preferred fix https://github.com/MaaXYZ/MaaFramework/issues/490 --- source/MaaUtils/GpuOption/GpuOptionWin32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/MaaUtils/GpuOption/GpuOptionWin32.cpp b/source/MaaUtils/GpuOption/GpuOptionWin32.cpp index ab344fef3..4da686478 100644 --- a/source/MaaUtils/GpuOption/GpuOptionWin32.cpp +++ b/source/MaaUtils/GpuOption/GpuOptionWin32.cpp @@ -188,9 +188,9 @@ std::optional 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; }