2018-05-24 12:31:04 +02:00
|
|
|
#include "dxgi_options.h"
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
const static std::unordered_map<std::string, DxgiOptions> g_dxgiAppOptions = {{
|
|
|
|
{ "Frostpunk.exe", DxgiOptions(DxgiOption::DeferSurfaceCreation) },
|
2018-07-20 13:49:07 +02:00
|
|
|
{ "Wow.exe", DxgiOptions(DxgiOption::FakeDx10Support) },
|
2018-05-24 12:31:04 +02:00
|
|
|
}};
|
|
|
|
|
|
|
|
|
|
|
|
DxgiOptions getDxgiAppOptions(const std::string& appName) {
|
2018-07-20 13:49:07 +02:00
|
|
|
DxgiOptions options;
|
|
|
|
|
2018-05-24 12:31:04 +02:00
|
|
|
auto appOptions = g_dxgiAppOptions.find(appName);
|
2018-07-20 13:49:07 +02:00
|
|
|
if (appOptions != g_dxgiAppOptions.end())
|
|
|
|
options = appOptions->second;
|
|
|
|
|
|
|
|
if (env::getEnvVar(L"DXVK_FAKE_DX10_SUPPORT") == "1")
|
|
|
|
options.set(DxgiOption::FakeDx10Support);
|
2018-05-24 12:31:04 +02:00
|
|
|
|
2018-07-20 13:49:07 +02:00
|
|
|
return options;
|
2018-05-24 12:31:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|