1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxvk] Pass DxvkDevice to DxvkMetaPackObjects constructor

This commit is contained in:
Philip Rebohle 2019-07-30 19:04:36 +02:00
parent 9a2da555c0
commit 6a58c432ec
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
4 changed files with 7 additions and 4 deletions

View File

@ -26,7 +26,7 @@ namespace dxvk {
m_metaCopyObjects (new DxvkMetaCopyObjects (this)),
m_metaResolveObjects(new DxvkMetaResolveObjects (this)),
m_metaMipGenObjects (new DxvkMetaMipGenObjects (this)),
m_metaPackObjects (new DxvkMetaPackObjects (vkd)),
m_metaPackObjects (new DxvkMetaPackObjects (this)),
m_unboundResources (this),
m_submissionQueue (this) {
auto queueFamilies = m_adapter->findQueueFamilies();

View File

@ -12,6 +12,8 @@
namespace dxvk {
class DxvkDevice;
/**
* \brief Copy pipeline
*

View File

@ -1,4 +1,5 @@
#include "dxvk_meta_pack.h"
#include "dxvk_device.h"
#include <dxvk_pack_d24s8.h>
#include <dxvk_pack_d32s8.h>
@ -9,8 +10,8 @@
namespace dxvk {
DxvkMetaPackObjects::DxvkMetaPackObjects(const Rc<vk::DeviceFn>& vkd)
: m_vkd (vkd),
DxvkMetaPackObjects::DxvkMetaPackObjects(const DxvkDevice* device)
: m_vkd (device->vkd()),
m_sampler (createSampler()),
m_dsetLayoutPack (createPackDescriptorSetLayout()),
m_dsetLayoutUnpack(createUnpackDescriptorSetLayout()),

View File

@ -76,7 +76,7 @@ namespace dxvk {
public:
DxvkMetaPackObjects(const Rc<vk::DeviceFn>& vkd);
DxvkMetaPackObjects(const DxvkDevice* device);
~DxvkMetaPackObjects();
/**