mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 04:08:52 +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_memory (new DxvkMemoryAllocator (this)),
|
||||||
m_renderPassPool (new DxvkRenderPassPool (vkd)),
|
m_renderPassPool (new DxvkRenderPassPool (vkd)),
|
||||||
m_pipelineManager (new DxvkPipelineManager (this, m_renderPassPool.ptr())),
|
m_pipelineManager (new DxvkPipelineManager (this, m_renderPassPool.ptr())),
|
||||||
m_gpuEventPool (new DxvkGpuEventPool (vkd)),
|
m_gpuEventPool (new DxvkGpuEventPool (this)),
|
||||||
m_gpuQueryPool (new DxvkGpuQueryPool (this)),
|
m_gpuQueryPool (new DxvkGpuQueryPool (this)),
|
||||||
m_metaClearObjects (new DxvkMetaClearObjects (this)),
|
m_metaClearObjects (new DxvkMetaClearObjects (this)),
|
||||||
m_metaCopyObjects (new DxvkMetaCopyObjects (this)),
|
m_metaCopyObjects (new DxvkMetaCopyObjects (this)),
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "dxvk_gpu_event.h"
|
#include "dxvk_gpu_event.h"
|
||||||
|
#include "dxvk_device.h"
|
||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
@ -35,8 +36,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
DxvkGpuEventPool::DxvkGpuEventPool(const Rc<vk::DeviceFn>& vkd)
|
DxvkGpuEventPool::DxvkGpuEventPool(const DxvkDevice* device)
|
||||||
: m_vkd(vkd) { }
|
: m_vkd(device->vkd()) { }
|
||||||
|
|
||||||
|
|
||||||
DxvkGpuEventPool::~DxvkGpuEventPool() {
|
DxvkGpuEventPool::~DxvkGpuEventPool() {
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
|
class DxvkDevice;
|
||||||
class DxvkGpuEventPool;
|
class DxvkGpuEventPool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -87,7 +88,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DxvkGpuEventPool(const Rc<vk::DeviceFn>& vkd);
|
DxvkGpuEventPool(const DxvkDevice* device);
|
||||||
~DxvkGpuEventPool();
|
~DxvkGpuEventPool();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user