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 {
|
|
|
|
|
2018-08-07 14:58:08 +02:00
|
|
|
D3D11Options::D3D11Options(const Config& config) {
|
|
|
|
this->allowMapFlagNoWait = config.getOption<bool>("d3d11.allowMapFlagNoWait", false);
|
2018-11-20 10:51:09 +01:00
|
|
|
this->dcSingleUseMode = config.getOption<bool>("d3d11.dcSingleUseMode", true);
|
2018-08-07 14:58:08 +02:00
|
|
|
this->fakeStreamOutSupport = config.getOption<bool>("d3d11.fakeStreamOutSupport", false);
|
2018-09-09 23:14:00 +02:00
|
|
|
this->maxTessFactor = config.getOption<int32_t>("d3d11.maxTessFactor", 0);
|
2018-09-10 15:42:55 +02:00
|
|
|
this->samplerAnisotropy = config.getOption<int32_t>("d3d11.samplerAnisotropy", -1);
|
2018-10-22 22:41:54 +02:00
|
|
|
this->deferSurfaceCreation = config.getOption<bool>("dxgi.deferSurfaceCreation", false);
|
|
|
|
this->numBackBuffers = config.getOption<int32_t>("dxgi.numBackBuffers", 0);
|
|
|
|
this->syncInterval = config.getOption<int32_t>("dxgi.syncInterval", -1);
|
2018-10-23 11:09:24 +02:00
|
|
|
this->syncMode = D3D11SwapChainSyncMode(config.getOption<int32_t>("dxgi.syncMode", 0));
|
2018-03-24 17:29:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|