1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-02 11:52:10 +01:00
dxvk/src/d3d11/d3d11_options.cpp
Philip Rebohle f519a0f2e4
[d3d11] Fake streamout support for Final Fantasy XV
The game uses this feature only for Hairworks. This hides an error
message and allows the game to start.
2018-06-16 18:52:20 +02:00

23 lines
752 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) },
{ "FarCry5.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
{ "ffxv_s.exe", D3D11OptionSet(D3D11Option::FakeStreamOutSupport) },
{ "Overwatch.exe", D3D11OptionSet(D3D11Option::FakeStreamOutSupport) },
}};
D3D11OptionSet D3D11GetAppOptions(const std::string& AppName) {
auto appOptions = g_d3d11AppOptions.find(AppName);
return appOptions != g_d3d11AppOptions.end()
? appOptions->second
: D3D11OptionSet();
}
}