From 1871734f378ace18742e092bb1a4cae1deea900d Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 22 Dec 2025 14:23:48 +1100 Subject: [PATCH] add vertex offset to draw indexed --- vulkan.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulkan.d b/vulkan.d index 33a8bbd..da645d2 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) +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