2018-03-24 18:54:00 +01:00
|
|
|
#include <unordered_map>
|
|
|
|
|
2018-03-24 17:29:13 +01:00
|
|
|
#include "d3d11_options.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
const static std::unordered_map<std::string, D3D11OptionSet> g_d3d11AppOptions = {{
|
2018-05-25 23:53:34 +02:00
|
|
|
{ "Dishonored2.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
|
2018-06-03 22:33:08 +02:00
|
|
|
{ "FarCry5.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
|
2018-05-25 23:53:34 +02:00
|
|
|
{ "Overwatch.exe", D3D11OptionSet(D3D11Option::FakeStreamOutSupport) },
|
2018-03-24 17:29:13 +01:00
|
|
|
}};
|
|
|
|
|
|
|
|
|
|
|
|
D3D11OptionSet D3D11GetAppOptions(const std::string& AppName) {
|
|
|
|
auto appOptions = g_d3d11AppOptions.find(AppName);
|
|
|
|
|
|
|
|
return appOptions != g_d3d11AppOptions.end()
|
|
|
|
? appOptions->second
|
|
|
|
: D3D11OptionSet();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|