2018-08-07 15:42:21 +01:00
|
|
|
#include "dxvk_options.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
DxvkOptions::DxvkOptions(const Config& config) {
|
2022-02-01 10:49:01 +00:00
|
|
|
enableDebugUtils = config.getOption<bool> ("dxvk.enableDebugUtils", false);
|
2018-11-24 19:04:21 +00:00
|
|
|
enableStateCache = config.getOption<bool> ("dxvk.enableStateCache", true);
|
2018-11-15 08:24:11 +00:00
|
|
|
numCompilerThreads = config.getOption<int32_t> ("dxvk.numCompilerThreads", 0);
|
2022-07-05 17:56:43 +01:00
|
|
|
enableGraphicsPipelineLibrary = config.getOption<Tristate>("dxvk.enableGraphicsPipelineLibrary", Tristate::Auto);
|
2022-08-09 03:54:42 +01:00
|
|
|
trackPipelineLifetime = config.getOption<Tristate>("dxvk.trackPipelineLifetime", Tristate::Auto);
|
2019-01-08 19:58:18 +00:00
|
|
|
useRawSsbo = config.getOption<Tristate>("dxvk.useRawSsbo", Tristate::Auto);
|
2023-03-01 10:52:55 +00:00
|
|
|
maxChunkSize = config.getOption<int32_t> ("dxvk.maxChunkSize", 0);
|
2019-08-01 11:37:55 +01:00
|
|
|
hud = config.getOption<std::string>("dxvk.hud", "");
|
2018-08-07 15:42:21 +01:00
|
|
|
}
|
|
|
|
|
2021-03-03 08:40:19 +00:00
|
|
|
}
|