Indirect Drawing

Indirect drawing is a technique that allows you to dispatch draw calls using parameters from a buffer on the GPU. This is useful for drawing a dynamic number of instances, and vertices determined on the GPU.

Draw Indexed Indirect

(drawIndexedIndirect under the hood)

Draw Indirect

(drawIndirect under the hood)

Example