1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 13:24:10 +01:00

[d3d11] Added missing files

This commit is contained in:
Philip Rebohle 2018-03-24 17:29:13 +01:00
parent bd69e843c2
commit 0900e1b5f9
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#include "d3d11_options.h"
namespace dxvk {
const static std::unordered_map<std::string, D3D11OptionSet> g_d3d11AppOptions = {{
{ "witcher3.exe", D3D11OptionSet(D3D11Option::IgnoreMapFlagNoWait) },
}};
D3D11OptionSet D3D11GetAppOptions(const std::string& AppName) {
auto appOptions = g_d3d11AppOptions.find(AppName);
return appOptions != g_d3d11AppOptions.end()
? appOptions->second
: D3D11OptionSet();
}
}

21
src/d3d11/d3d11_options.h Normal file
View File

@ -0,0 +1,21 @@
#pragma once
#include "d3d11_include.h"
namespace dxvk {
enum class D3D11Option : uint64_t {
IgnoreMapFlagNoWait = 0,
};
using D3D11OptionSet = Flags<D3D11Option>;
/**
* \brief Retrieves per-app options
*
* \param [in] AppName Executable name
* \returns D3D11 options
*/
D3D11OptionSet D3D11GetAppOptions(const std::string& AppName);
}