mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 10:24:10 +01:00
[dxvk] Pass DxvkDevice to DxvkEventPool constructor
This commit is contained in:
parent
40028a5b8c
commit
e12103121f
@ -20,7 +20,7 @@ namespace dxvk {
|
||||
m_memory (new DxvkMemoryAllocator (this)),
|
||||
m_renderPassPool (new DxvkRenderPassPool (vkd)),
|
||||
m_pipelineManager (new DxvkPipelineManager (this, m_renderPassPool.ptr())),
|
||||
m_gpuEventPool (new DxvkGpuEventPool (vkd)),
|
||||
m_gpuEventPool (new DxvkGpuEventPool (this)),
|
||||
m_gpuQueryPool (new DxvkGpuQueryPool (this)),
|
||||
m_metaClearObjects (new DxvkMetaClearObjects (this)),
|
||||
m_metaCopyObjects (new DxvkMetaCopyObjects (this)),
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "dxvk_gpu_event.h"
|
||||
#include "dxvk_device.h"
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
@ -35,8 +36,8 @@ namespace dxvk {
|
||||
|
||||
|
||||
|
||||
DxvkGpuEventPool::DxvkGpuEventPool(const Rc<vk::DeviceFn>& vkd)
|
||||
: m_vkd(vkd) { }
|
||||
DxvkGpuEventPool::DxvkGpuEventPool(const DxvkDevice* device)
|
||||
: m_vkd(device->vkd()) { }
|
||||
|
||||
|
||||
DxvkGpuEventPool::~DxvkGpuEventPool() {
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
class DxvkDevice;
|
||||
class DxvkGpuEventPool;
|
||||
|
||||
/**
|
||||
@ -87,7 +88,7 @@ namespace dxvk {
|
||||
|
||||
public:
|
||||
|
||||
DxvkGpuEventPool(const Rc<vk::DeviceFn>& vkd);
|
||||
DxvkGpuEventPool(const DxvkDevice* device);
|
||||
~DxvkGpuEventPool();
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user