With glMultiDrawElementsBaseVertex
it becomes possible to render multiple sets of indices in one draw call. When using for instance GL_UNSIGNED_SHORT
as the type of the indices is there still a restriction that only MAX_UNSIGNED_SHORT
vertices can be rendered at a time? Or does the combination with multiple base vertices allow to exceed this number and allow for multiple sets of sub-draw calls provided that these do not exceed the MAX_UNSIGNED_SHORT
restriction in relation to their base vertex?
So for instance given the following input to the command:
$\mathit{count} = [65535, 65535]$
$\mathit{indices} = [\mathit{indexOffset0}, \mathit{indexOffset1}]$
$\mathit{baseVertex} = [0, 65536]$
will the baseVertex offset (> MAX_UNSIGNED_SHORT
) be correctly added to the index found at indexOffset1? I don't believe the specs raise anything about the types of indices used and the number of vertices referenced.