Having trouble understanding BatchDrawCommandIndirect
from docs alone.
Arguments are of IndirectDrawArgs
type, which implies it would result in similar draw calls as Graphics.RenderPrimitivesIndirect
, in which neither vertex nor index buffers are bound?
However, BatchDrawCommandIndirect
does have meshID
field, which would imply at least a vertex buffer being bound? If not, what is meshID
used for? Is the draw call indexed? If that’s the case, is IndirectDrawArgs.vertexCountPerInstance
used as a number of indices?