mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
Apparently this breaks Elder Scrolls Online as well, so we'll just enable it explicitly for games which benefit from this optimization and disable it by default.
20 lines
484 B
C++
20 lines
484 B
C++
#include <unordered_map>
|
|
|
|
#include "d3d11_options.h"
|
|
|
|
namespace dxvk {
|
|
|
|
const static std::unordered_map<std::string, D3D11OptionSet> g_d3d11AppOptions = {{
|
|
{ "Dishonored2.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
|
|
}};
|
|
|
|
|
|
D3D11OptionSet D3D11GetAppOptions(const std::string& AppName) {
|
|
auto appOptions = g_d3d11AppOptions.find(AppName);
|
|
|
|
return appOptions != g_d3d11AppOptions.end()
|
|
? appOptions->second
|
|
: D3D11OptionSet();
|
|
}
|
|
|
|
} |