1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +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 {
DxvkCommandList::DxvkCommandList(
const Rc<vk::DeviceFn>& vkd,
DxvkDevice* device,
uint32_t queueFamily)
: m_vkd (vkd),
: m_vkd (device->vkd()),
m_cmdBuffersUsed(0),
m_descAlloc (vkd),
m_descAlloc (device->vkd()),
m_stagingAlloc (device) {
VkFenceCreateInfo fenceInfo;
fenceInfo.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;

View File

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

View File

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