mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Add DxvkOptions struct for quick lookup of features/limits
This commit is contained in:
parent
d35ff6ca13
commit
aa3e718fcd
@ -38,6 +38,14 @@ namespace dxvk {
|
|||||||
// executed before we destroy any resources.
|
// executed before we destroy any resources.
|
||||||
m_vkd->vkDeviceWaitIdle(m_vkd->device());
|
m_vkd->vkDeviceWaitIdle(m_vkd->device());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DxvkDeviceOptions DxvkDevice::options() const {
|
||||||
|
DxvkDeviceOptions options;
|
||||||
|
options.maxNumDynamicUniformBuffers = m_properties.limits.maxDescriptorSetUniformBuffersDynamic;
|
||||||
|
options.maxNumDynamicStorageBuffers = m_properties.limits.maxDescriptorSetStorageBuffersDynamic;
|
||||||
|
return options;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Rc<DxvkPhysicalBuffer> DxvkDevice::allocPhysicalBuffer(
|
Rc<DxvkPhysicalBuffer> DxvkDevice::allocPhysicalBuffer(
|
||||||
|
@ -26,6 +26,14 @@
|
|||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
class DxvkInstance;
|
class DxvkInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Device options
|
||||||
|
*/
|
||||||
|
struct DxvkDeviceOptions {
|
||||||
|
uint32_t maxNumDynamicUniformBuffers = 0;
|
||||||
|
uint32_t maxNumDynamicStorageBuffers = 0;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Device queue
|
* \brief Device queue
|
||||||
@ -98,7 +106,7 @@ namespace dxvk {
|
|||||||
Rc<DxvkAdapter> adapter() const {
|
Rc<DxvkAdapter> adapter() const {
|
||||||
return m_adapter;
|
return m_adapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Enabled device extensions
|
* \brief Enabled device extensions
|
||||||
* \returns Enabled device extensions
|
* \returns Enabled device extensions
|
||||||
@ -115,6 +123,12 @@ namespace dxvk {
|
|||||||
return m_features;
|
return m_features;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Retrieves device options
|
||||||
|
* \returns Device options
|
||||||
|
*/
|
||||||
|
DxvkDeviceOptions options() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Allocates a physical buffer
|
* \brief Allocates a physical buffer
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user