mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
vk: Fix more silly mistakes
Some checks are pending
Generate Translation Template / Generate Translation Template (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
Some checks are pending
Generate Translation Template / Generate Translation Template (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
This commit is contained in:
parent
01cf71e49a
commit
2afd7707fe
1 changed files with 4 additions and 2 deletions
|
@ -975,8 +975,10 @@ void VKGSRender::emit_geometry(u32 sub_index)
|
||||||
const auto allocation_size = subranges_count * sizeof(VkMultiDrawIndexedInfoEXT);
|
const auto allocation_size = subranges_count * sizeof(VkMultiDrawIndexedInfoEXT);
|
||||||
|
|
||||||
m_multidraw_parameters_buffer.resize(allocation_size);
|
m_multidraw_parameters_buffer.resize(allocation_size);
|
||||||
auto _ptr = utils::bless<VkMultiDrawIndexedInfoEXT>(m_multidraw_parameters_buffer.data());
|
auto base_ptr = utils::bless<VkMultiDrawIndexedInfoEXT>(m_multidraw_parameters_buffer.data());
|
||||||
|
|
||||||
u32 vertex_offset = 0;
|
u32 vertex_offset = 0;
|
||||||
|
auto _ptr = base_ptr;
|
||||||
|
|
||||||
for (const auto& range : subranges)
|
for (const auto& range : subranges)
|
||||||
{
|
{
|
||||||
|
@ -988,7 +990,7 @@ void VKGSRender::emit_geometry(u32 sub_index)
|
||||||
_ptr++;
|
_ptr++;
|
||||||
vertex_offset += count;
|
vertex_offset += count;
|
||||||
}
|
}
|
||||||
_vkCmdDrawMultiIndexedEXT(*m_current_command_buffer, subranges_count, _ptr, 1, 0, sizeof(u32) * 3, nullptr);
|
_vkCmdDrawMultiIndexedEXT(*m_current_command_buffer, subranges_count, base_ptr, 1, 0, sizeof(VkMultiDrawIndexedInfoEXT), nullptr);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue