Renderer: Implement firstIndex on DrawIndexed command for OpenGL

This commit is contained in:
Jérôme Leclercq
2021-09-05 15:46:00 +02:00
parent 02a12d9328
commit b6c3988bbe
9 changed files with 16 additions and 14 deletions

View File

@@ -131,9 +131,9 @@ namespace Nz
m_commandBuffer.Draw(vertexCount, instanceCount, firstVertex, firstInstance);
}
void VulkanCommandBufferBuilder::DrawIndexed(UInt32 indexCount, UInt32 instanceCount, UInt32 firstVertex, UInt32 firstInstance)
void VulkanCommandBufferBuilder::DrawIndexed(UInt32 indexCount, UInt32 instanceCount, UInt32 firstIndex, UInt32 firstInstance)
{
m_commandBuffer.DrawIndexed(indexCount, instanceCount, firstVertex, 0, firstInstance);
m_commandBuffer.DrawIndexed(indexCount, instanceCount, firstIndex, 0, firstInstance);
}
void VulkanCommandBufferBuilder::EndDebugRegion()