mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 19:24:11 +01:00
[dxvk] Store DXVK options directly with the instance object
This commit is contained in:
parent
7738d2f353
commit
99f6953e89
@ -8,7 +8,7 @@ namespace dxvk {
|
||||
const Rc<vk::DeviceFn>& vkd,
|
||||
const DxvkDeviceExtensions& extensions,
|
||||
const DxvkDeviceFeatures& features)
|
||||
: m_options (adapter->instance()->config()),
|
||||
: m_options (adapter->instance()->options()),
|
||||
m_adapter (adapter),
|
||||
m_vkd (vkd),
|
||||
m_extensions (extensions),
|
||||
|
@ -22,6 +22,8 @@ namespace dxvk {
|
||||
|
||||
m_adapters = this->queryAdapters();
|
||||
g_vrInstance.initDeviceExtensions(this);
|
||||
|
||||
m_options = DxvkOptions(m_config);
|
||||
}
|
||||
|
||||
|
||||
|
@ -59,9 +59,18 @@ namespace dxvk {
|
||||
return m_config;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief DXVK options
|
||||
* \returns DXVK options
|
||||
*/
|
||||
const DxvkOptions& options() const {
|
||||
return m_options;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Config m_config;
|
||||
DxvkOptions m_options;
|
||||
|
||||
Rc<vk::LibraryFn> m_vkl;
|
||||
Rc<vk::InstanceFn> m_vki;
|
||||
|
@ -5,6 +5,7 @@
|
||||
namespace dxvk {
|
||||
|
||||
struct DxvkOptions {
|
||||
DxvkOptions() { }
|
||||
DxvkOptions(const Config& config);
|
||||
|
||||
/// Allow allocating more memory from
|
||||
|
Loading…
Reference in New Issue
Block a user