From 11cf96b799c6ccee3c4f569e89c263d11c4d5ff8 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 22 Dec 2025 14:44:59 +1100 Subject: [PATCH] add first instance param to draw indexed --- vulkan.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulkan.d b/vulkan.d index da645d2..9ea74a1 100644 --- a/vulkan.d +++ b/vulkan.d @@ -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, 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