Number of draw calls to perform.
Maximum number of multi-draw calls the space is allocated for.
Writes one draw command into the allocated storage.
Draw index to update.
Number of indices or vertices to draw.
Number of instances to draw (use 1 if not instanced).
Starting index (in indices, not bytes) or starting vertex.
Optional
baseVertex: number = 0Signed base vertex (WebGPU only). Defaults to 0.
Optional
firstInstance: number = 0First instance (WebGPU only). Defaults to 0.
Finalize and set draw count after all commands have been added.
Number of draws to execute.
Container holding parameters for multi-draw commands.
Obtain an instance via MeshInstance#setMultiDraw and populate it using DrawCommands#add followed by DrawCommands#update.