mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 19:24:12 +01:00
[d3d11] Added missing files
This commit is contained in:
parent
bd69e843c2
commit
0900e1b5f9
18
src/d3d11/d3d11_options.cpp
Normal file
18
src/d3d11/d3d11_options.cpp
Normal 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
21
src/d3d11/d3d11_options.h
Normal 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);
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user