add vertex offset to draw indexed

This commit is contained in:
Matthew 2025-12-22 14:23:48 +11:00
parent 0e8057fa80
commit 1871734f37

View File

@ -860,9 +860,9 @@ Draw(Vulkan* vk, u32 index_count, u32 instance_count)
}
void
DrawIndexed(Vulkan* vk, u32 index_count, u32 instance_count, u32 index_offset)
DrawIndexed(Vulkan* vk, u32 index_count, u32 instance_count, u32 index_offset, i32 vertex_offset)
{
vkCmdDrawIndexed(vk.cmds[vk.frame_index], index_count, instance_count, index_offset, 0, 0);
vkCmdDrawIndexed(vk.cmds[vk.frame_index], index_count, instance_count, index_offset, vertex_offset, 0);
}
bool