add vertex offset to draw indexed
This commit is contained in:
parent
0e8057fa80
commit
1871734f37
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)
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user