[D3D12] Better D3D12 initialization failure error message

This commit is contained in:
Triang3l 2021-04-28 21:13:00 +03:00
parent bb55bb3e70
commit 556893177b
1 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,7 @@ std::unique_ptr<D3D12Provider> D3D12Provider::Create(Window* main_window) {
"Unable to initialize Direct3D 12 graphics subsystem.\n" "Unable to initialize Direct3D 12 graphics subsystem.\n"
"\n" "\n"
"Ensure that you have the latest drivers for your GPU and it supports " "Ensure that you have the latest drivers for your GPU and it supports "
"Direct3D 12 feature level 11_0.\n" "Direct3D 12 with the feature level of at least 11_0.\n"
"\n" "\n"
"See https://xenia.jp/faq/ for more information and a list of " "See https://xenia.jp/faq/ for more information and a list of "
"supported GPUs."); "supported GPUs.");
@ -270,7 +270,9 @@ bool D3D12Provider::Initialize() {
++adapter_index; ++adapter_index;
} }
if (adapter == nullptr) { if (adapter == nullptr) {
XELOGE("Failed to get an adapter supporting Direct3D feature level 11_0"); XELOGE(
"Failed to get an adapter supporting Direct3D 12 with the feature "
"level of at least 11_0");
dxgi_factory->Release(); dxgi_factory->Release();
return false; return false;
} }