mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Make device properties accessible from the device
This commit is contained in:
parent
2f15cb7602
commit
acf0001fd1
@ -15,7 +15,7 @@ namespace dxvk {
|
|||||||
m_vkd (vkd),
|
m_vkd (vkd),
|
||||||
m_extensions (extensions),
|
m_extensions (extensions),
|
||||||
m_features (features),
|
m_features (features),
|
||||||
m_properties (adapter->deviceProperties()),
|
m_properties (adapter->devicePropertiesExt()),
|
||||||
m_perfHints (getPerfHints()),
|
m_perfHints (getPerfHints()),
|
||||||
m_objects (this),
|
m_objects (this),
|
||||||
m_submissionQueue (this) {
|
m_submissionQueue (this) {
|
||||||
@ -51,8 +51,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
DxvkDeviceOptions DxvkDevice::options() const {
|
DxvkDeviceOptions DxvkDevice::options() const {
|
||||||
DxvkDeviceOptions options;
|
DxvkDeviceOptions options;
|
||||||
options.maxNumDynamicUniformBuffers = m_properties.limits.maxDescriptorSetUniformBuffersDynamic;
|
options.maxNumDynamicUniformBuffers = m_properties.core.properties.limits.maxDescriptorSetUniformBuffersDynamic;
|
||||||
options.maxNumDynamicStorageBuffers = m_properties.limits.maxDescriptorSetStorageBuffersDynamic;
|
options.maxNumDynamicStorageBuffers = m_properties.core.properties.limits.maxDescriptorSetStorageBuffersDynamic;
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,9 +98,9 @@ namespace dxvk {
|
|||||||
Rc<DxvkFramebuffer> DxvkDevice::createFramebuffer(
|
Rc<DxvkFramebuffer> DxvkDevice::createFramebuffer(
|
||||||
const DxvkRenderTargets& renderTargets) {
|
const DxvkRenderTargets& renderTargets) {
|
||||||
const DxvkFramebufferSize defaultSize = {
|
const DxvkFramebufferSize defaultSize = {
|
||||||
m_properties.limits.maxFramebufferWidth,
|
m_properties.core.properties.limits.maxFramebufferWidth,
|
||||||
m_properties.limits.maxFramebufferHeight,
|
m_properties.core.properties.limits.maxFramebufferHeight,
|
||||||
m_properties.limits.maxFramebufferLayers };
|
m_properties.core.properties.limits.maxFramebufferLayers };
|
||||||
|
|
||||||
auto renderPassFormat = DxvkFramebuffer::getRenderPassFormat(renderTargets);
|
auto renderPassFormat = DxvkFramebuffer::getRenderPassFormat(renderTargets);
|
||||||
auto renderPassObject = m_objects.renderPassPool().getRenderPass(renderPassFormat);
|
auto renderPassObject = m_objects.renderPassPool().getRenderPass(renderPassFormat);
|
||||||
|
@ -165,6 +165,14 @@ namespace dxvk {
|
|||||||
return m_features;
|
return m_features;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Device properties
|
||||||
|
* \returns Device properties
|
||||||
|
*/
|
||||||
|
const DxvkDeviceInfo& properties() const {
|
||||||
|
return m_properties;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Queries supported shader stages
|
* \brief Queries supported shader stages
|
||||||
* \returns Supported shader pipeline stages
|
* \returns Supported shader pipeline stages
|
||||||
@ -431,7 +439,7 @@ namespace dxvk {
|
|||||||
DxvkDeviceExtensions m_extensions;
|
DxvkDeviceExtensions m_extensions;
|
||||||
|
|
||||||
DxvkDeviceFeatures m_features;
|
DxvkDeviceFeatures m_features;
|
||||||
VkPhysicalDeviceProperties m_properties;
|
DxvkDeviceInfo m_properties;
|
||||||
|
|
||||||
DxvkDevicePerfHints m_perfHints;
|
DxvkDevicePerfHints m_perfHints;
|
||||||
DxvkObjects m_objects;
|
DxvkObjects m_objects;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user