mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 07:24:15 +01:00
[dxvk] Track enabled instance extensions
Reviewed-by: Oleg Kuznetsov <okouznetsov@nvidia.com>
This commit is contained in:
parent
c3feea2bce
commit
c89b274325
@ -105,6 +105,8 @@ namespace dxvk {
|
|||||||
extensionsEnabled))
|
extensionsEnabled))
|
||||||
throw DxvkError("DxvkInstance: Failed to create instance");
|
throw DxvkError("DxvkInstance: Failed to create instance");
|
||||||
|
|
||||||
|
m_extensions = insExtensions;
|
||||||
|
|
||||||
// Enable additional extensions if necessary
|
// Enable additional extensions if necessary
|
||||||
for (const auto& provider : m_extProviders)
|
for (const auto& provider : m_extProviders)
|
||||||
extensionsEnabled.merge(provider->getInstanceExtensions());
|
extensionsEnabled.merge(provider->getInstanceExtensions());
|
||||||
|
@ -98,13 +98,22 @@ namespace dxvk {
|
|||||||
return m_options;
|
return m_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Enabled instance extensions
|
||||||
|
* \returns Enabled instance extensions
|
||||||
|
*/
|
||||||
|
const DxvkInstanceExtensions& extensions() const {
|
||||||
|
return m_extensions;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Config m_config;
|
Config m_config;
|
||||||
DxvkOptions m_options;
|
DxvkOptions m_options;
|
||||||
|
|
||||||
Rc<vk::LibraryFn> m_vkl;
|
Rc<vk::LibraryFn> m_vkl;
|
||||||
Rc<vk::InstanceFn> m_vki;
|
Rc<vk::InstanceFn> m_vki;
|
||||||
|
DxvkInstanceExtensions m_extensions;
|
||||||
|
|
||||||
std::vector<DxvkExtensionProvider*> m_extProviders;
|
std::vector<DxvkExtensionProvider*> m_extProviders;
|
||||||
std::vector<Rc<DxvkAdapter>> m_adapters;
|
std::vector<Rc<DxvkAdapter>> m_adapters;
|
||||||
|
Loading…
Reference in New Issue
Block a user