1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxvk] Pass DxvkDevice to DxvkRenderPassPool constructor

This commit is contained in:
Philip Rebohle 2019-07-30 19:08:32 +02:00
parent e12103121f
commit cfd7033e40
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 7 additions and 5 deletions

View File

@ -18,7 +18,7 @@ namespace dxvk {
m_properties (adapter->deviceProperties()),
m_perfHints (getPerfHints()),
m_memory (new DxvkMemoryAllocator (this)),
m_renderPassPool (new DxvkRenderPassPool (vkd)),
m_renderPassPool (new DxvkRenderPassPool (this)),
m_pipelineManager (new DxvkPipelineManager (this, m_renderPassPool.ptr())),
m_gpuEventPool (new DxvkGpuEventPool (this)),
m_gpuQueryPool (new DxvkGpuQueryPool (this)),

View File

@ -1,5 +1,6 @@
#include <algorithm>
#include "dxvk_device.h"
#include "dxvk_renderpass.h"
namespace dxvk {
@ -220,8 +221,8 @@ namespace dxvk {
}
DxvkRenderPassPool::DxvkRenderPassPool(const Rc<vk::DeviceFn>& vkd)
: m_vkd(vkd) {
DxvkRenderPassPool::DxvkRenderPassPool(const DxvkDevice* device)
: m_vkd(device->vkd()) {
}

View File

@ -8,6 +8,8 @@
#include "dxvk_limits.h"
namespace dxvk {
class DxvkDevice;
/**
* \brief Format and layout for a render target
@ -203,8 +205,7 @@ namespace dxvk {
public:
DxvkRenderPassPool(
const Rc<vk::DeviceFn>& vkd);
DxvkRenderPassPool(const DxvkDevice* device);
~DxvkRenderPassPool();
/**