add first instance param to draw indexed

This commit is contained in:
Matthew 2025-12-22 14:44:59 +11:00
parent 1871734f37
commit 11cf96b799

View File

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