GraphicsDevice.DrawInstancedPrimitives Method (Microsoft.Xna.Framework.Graphics)

Draw instanced geometry from the bound vertex buffers and index buffer.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public void DrawInstancedPrimitives(
	PrimitiveType primitiveType, 
	int baseVertex, 
	int startIndex, 
	int primitiveCount, 
	int instanceCount

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Graphics.PrimitiveType
The type of primitives in the index buffer.
Type: System.Int32
Used to offset the vertex range indexed from the vertex buffer.
Type: System.Int32
The index within the index buffer to start drawing from.
Type: System.Int32
The number of primitives in a single instance.
Type: System.Int32
The number of instances to render.
Draw geometry with data from multiple bound vertex streams at different frequencies.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop