2018-08-07 16:42:21 +02:00
|
|
|
#include "dxvk_options.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
DxvkOptions::DxvkOptions(const Config& config) {
|
2018-11-24 20:04:21 +01:00
|
|
|
enableStateCache = config.getOption<bool> ("dxvk.enableStateCache", true);
|
2019-11-11 23:30:35 +01:00
|
|
|
enableOpenVR = config.getOption<bool> ("dxvk.enableOpenVR", true);
|
2021-01-04 14:33:11 -06:00
|
|
|
enableOpenXR = config.getOption<bool> ("dxvk.enableOpenXR", true);
|
2018-11-15 09:24:11 +01:00
|
|
|
numCompilerThreads = config.getOption<int32_t> ("dxvk.numCompilerThreads", 0);
|
2019-01-08 20:58:18 +01:00
|
|
|
useRawSsbo = config.getOption<Tristate>("dxvk.useRawSsbo", Tristate::Auto);
|
|
|
|
useEarlyDiscard = config.getOption<Tristate>("dxvk.useEarlyDiscard", Tristate::Auto);
|
2019-08-01 12:37:55 +02:00
|
|
|
hud = config.getOption<std::string>("dxvk.hud", "");
|
2018-08-07 16:42:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|