1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-22 07:54:15 +01:00

[dxvk] Remove redundant parameter from DxvkCommandList constructor

This commit is contained in:
Philip Rebohle 2018-09-12 18:54:05 +02:00
parent 2d93452cba
commit 9e3914b368
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 4 additions and 6 deletions

View File

@ -4,12 +4,11 @@
namespace dxvk { namespace dxvk {
DxvkCommandList::DxvkCommandList( DxvkCommandList::DxvkCommandList(
const Rc<vk::DeviceFn>& vkd,
DxvkDevice* device, DxvkDevice* device,
uint32_t queueFamily) uint32_t queueFamily)
: m_vkd (vkd), : m_vkd (device->vkd()),
m_cmdBuffersUsed(0), m_cmdBuffersUsed(0),
m_descAlloc (vkd), m_descAlloc (device->vkd()),
m_stagingAlloc (device) { m_stagingAlloc (device) {
VkFenceCreateInfo fenceInfo; VkFenceCreateInfo fenceInfo;
fenceInfo.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO; fenceInfo.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;

View File

@ -43,7 +43,6 @@ namespace dxvk {
public: public:
DxvkCommandList( DxvkCommandList(
const Rc<vk::DeviceFn>& vkd,
DxvkDevice* device, DxvkDevice* device,
uint32_t queueFamily); uint32_t queueFamily);
~DxvkCommandList(); ~DxvkCommandList();

View File

@ -106,8 +106,8 @@ namespace dxvk {
Rc<DxvkCommandList> cmdList = m_recycledCommandLists.retrieveObject(); Rc<DxvkCommandList> cmdList = m_recycledCommandLists.retrieveObject();
if (cmdList == nullptr) { if (cmdList == nullptr) {
cmdList = new DxvkCommandList(m_vkd, cmdList = new DxvkCommandList(this,
this, m_adapter->graphicsQueueFamily()); m_adapter->graphicsQueueFamily());
} }
return cmdList; return cmdList;