mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
vk: Explicit initialization of command pool queue family
This commit is contained in:
parent
12cad7c393
commit
d2de8a87bf
2 changed files with 3 additions and 3 deletions
|
@ -399,7 +399,7 @@ VKGSRender::VKGSRender() : GSRender()
|
|||
}
|
||||
|
||||
//create command buffer...
|
||||
m_command_buffer_pool.create((*m_device));
|
||||
m_command_buffer_pool.create((*m_device), m_device->get_graphics_queue_family());
|
||||
|
||||
for (auto &cb : m_primary_cb_list)
|
||||
{
|
||||
|
@ -410,7 +410,7 @@ VKGSRender::VKGSRender() : GSRender()
|
|||
m_current_command_buffer = &m_primary_cb_list[0];
|
||||
|
||||
//Create secondary command_buffer for parallel operations
|
||||
m_secondary_command_buffer_pool.create((*m_device));
|
||||
m_secondary_command_buffer_pool.create((*m_device), m_device->get_graphics_queue_family());
|
||||
m_secondary_command_buffer.create(m_secondary_command_buffer_pool, true);
|
||||
m_secondary_command_buffer.access_hint = vk::command_buffer::access_type_hint::all;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace vk
|
|||
command_pool() = default;
|
||||
~command_pool() = default;
|
||||
|
||||
void create(vk::render_device& dev, u32 queue_family = 0);
|
||||
void create(vk::render_device& dev, u32 queue_family);
|
||||
void destroy();
|
||||
|
||||
vk::render_device& get_owner() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue