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:
parent
e12103121f
commit
cfd7033e40
@ -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)),
|
||||
|
@ -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()) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user