VertexBufferBinding.InstanceFrequency Property

Gets the instancing frequency.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

Syntax

public int InstanceFrequency { get; }

Property Value

The number of instances to draw for each draw call.

Remarks

The frequency is the number of times to draw the same geometry each time draw is called: 1 means draw one instance, 2 means draw two instances, and so on. Use 0 if you are not instancing.

See Also

Reference

VertexBufferBinding Structure
VertexBufferBinding Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP