mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
vk: Fix bug preparing multidraw command details
This commit is contained in:
parent
7c27b7b727
commit
a152bb1123
1 changed files with 3 additions and 0 deletions
|
@ -947,6 +947,7 @@ void VKGSRender::emit_geometry(u32 sub_index)
|
||||||
{
|
{
|
||||||
_ptr->firstVertex = range.first;
|
_ptr->firstVertex = range.first;
|
||||||
_ptr->vertexCount = range.count;
|
_ptr->vertexCount = range.count;
|
||||||
|
_ptr++;
|
||||||
}
|
}
|
||||||
_vkCmdDrawMultiEXT(*m_current_command_buffer, subranges_count, ptr, 1, 0, sizeof(VkMultiDrawInfoEXT));
|
_vkCmdDrawMultiEXT(*m_current_command_buffer, subranges_count, ptr, 1, 0, sizeof(VkMultiDrawInfoEXT));
|
||||||
}
|
}
|
||||||
|
@ -990,6 +991,8 @@ void VKGSRender::emit_geometry(u32 sub_index)
|
||||||
_ptr->vertexOffset = 0;
|
_ptr->vertexOffset = 0;
|
||||||
_ptr->firstIndex = vertex_offset;
|
_ptr->firstIndex = vertex_offset;
|
||||||
_ptr->indexCount = count;
|
_ptr->indexCount = count;
|
||||||
|
|
||||||
|
_ptr++;
|
||||||
vertex_offset += count;
|
vertex_offset += count;
|
||||||
}
|
}
|
||||||
_vkCmdDrawMultiIndexedEXT(*m_current_command_buffer, subranges_count, ptr, 1, 0, sizeof(VkMultiDrawIndexedInfoEXT), nullptr);
|
_vkCmdDrawMultiIndexedEXT(*m_current_command_buffer, subranges_count, ptr, 1, 0, sizeof(VkMultiDrawIndexedInfoEXT), nullptr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue