add first instance param to draw indexed
This commit is contained in:
parent
1871734f37
commit
11cf96b799
4
vulkan.d
4
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user