From 2f30a9e18ec6c322e8ccd874b15ad6a5741ac42f Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 7 Feb 2022 18:17:58 -0500 Subject: [PATCH] Support base instance parameter on Vulkan's DrawInstanced command --- engine/gfx/vulkan/src/gfx_vulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/gfx/vulkan/src/gfx_vulkan.cpp b/engine/gfx/vulkan/src/gfx_vulkan.cpp index 1b7a776..bad0bbc 100755 --- a/engine/gfx/vulkan/src/gfx_vulkan.cpp +++ b/engine/gfx/vulkan/src/gfx_vulkan.cpp @@ -1479,7 +1479,7 @@ void GFXVulkan::submit(GFXCommandBuffer* command_buffer, const platform::window_ case GFXCommandType::DrawIndexed: { if(try_bind_descriptor()) { - vkCmdDrawIndexed(cmd, command.data.draw_indexed.index_count, 1, command.data.draw_indexed.first_index, command.data.draw_indexed.vertex_offset, 0); + vkCmdDrawIndexed(cmd, command.data.draw_indexed.index_count, 1, command.data.draw_indexed.first_index, command.data.draw_indexed.vertex_offset, command.data.draw_indexed.base_instance); } } break;