mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxvk] Pass DxvkDevice to DxvkRenderPassPool constructor
This commit is contained in:
parent
e12103121f
commit
cfd7033e40
@ -18,7 +18,7 @@ namespace dxvk {
|
|||||||
m_properties (adapter->deviceProperties()),
|
m_properties (adapter->deviceProperties()),
|
||||||
m_perfHints (getPerfHints()),
|
m_perfHints (getPerfHints()),
|
||||||
m_memory (new DxvkMemoryAllocator (this)),
|
m_memory (new DxvkMemoryAllocator (this)),
|
||||||
m_renderPassPool (new DxvkRenderPassPool (vkd)),
|
m_renderPassPool (new DxvkRenderPassPool (this)),
|
||||||
m_pipelineManager (new DxvkPipelineManager (this, m_renderPassPool.ptr())),
|
m_pipelineManager (new DxvkPipelineManager (this, m_renderPassPool.ptr())),
|
||||||
m_gpuEventPool (new DxvkGpuEventPool (this)),
|
m_gpuEventPool (new DxvkGpuEventPool (this)),
|
||||||
m_gpuQueryPool (new DxvkGpuQueryPool (this)),
|
m_gpuQueryPool (new DxvkGpuQueryPool (this)),
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include "dxvk_device.h"
|
||||||
#include "dxvk_renderpass.h"
|
#include "dxvk_renderpass.h"
|
||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
@ -220,8 +221,8 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DxvkRenderPassPool::DxvkRenderPassPool(const Rc<vk::DeviceFn>& vkd)
|
DxvkRenderPassPool::DxvkRenderPassPool(const DxvkDevice* device)
|
||||||
: m_vkd(vkd) {
|
: m_vkd(device->vkd()) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
#include "dxvk_limits.h"
|
#include "dxvk_limits.h"
|
||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
|
class DxvkDevice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Format and layout for a render target
|
* \brief Format and layout for a render target
|
||||||
@ -203,8 +205,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DxvkRenderPassPool(
|
DxvkRenderPassPool(const DxvkDevice* device);
|
||||||
const Rc<vk::DeviceFn>& vkd);
|
|
||||||
~DxvkRenderPassPool();
|
~DxvkRenderPassPool();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user