mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxvk] Enable option to disable OpenVR integration
This commit is contained in:
parent
9f66351b82
commit
cc18730967
@ -19,7 +19,9 @@ namespace dxvk {
|
||||
m_options = DxvkOptions(m_config);
|
||||
|
||||
m_extProviders.push_back(&DxvkPlatformExts::s_instance);
|
||||
m_extProviders.push_back(&VrInstance::s_instance);
|
||||
|
||||
if (m_options.enableOpenVR)
|
||||
m_extProviders.push_back(&VrInstance::s_instance);
|
||||
|
||||
Logger::info("Built-in extension providers:");
|
||||
for (const auto& provider : m_extProviders)
|
||||
|
@ -4,6 +4,7 @@ namespace dxvk {
|
||||
|
||||
DxvkOptions::DxvkOptions(const Config& config) {
|
||||
enableStateCache = config.getOption<bool> ("dxvk.enableStateCache", true);
|
||||
enableOpenVR = config.getOption<bool> ("dxvk.enableOpenVR", true);
|
||||
numCompilerThreads = config.getOption<int32_t> ("dxvk.numCompilerThreads", 0);
|
||||
asyncPresent = config.getOption<Tristate>("dxvk.asyncPresent", Tristate::Auto);
|
||||
useRawSsbo = config.getOption<Tristate>("dxvk.useRawSsbo", Tristate::Auto);
|
||||
|
@ -11,6 +11,9 @@ namespace dxvk {
|
||||
/// Enable state cache
|
||||
bool enableStateCache;
|
||||
|
||||
/// Enables OpenVR loading
|
||||
bool enableOpenVR;
|
||||
|
||||
/// Number of compiler threads
|
||||
/// when using the state cache
|
||||
int32_t numCompilerThreads;
|
||||
|
Loading…
x
Reference in New Issue
Block a user