VertexBufferBinding Constructor (VertexBuffer, Int32, Int32)
Creates an instance of this object.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
Syntax
public VertexBufferBinding (
VertexBuffer vertexBuffer,
int vertexOffset,
int instanceFrequency
)
Parameters
- vertexBuffer
The vertex buffer. - vertexOffset
Offset (in bytes) from the beginning of the buffer to the first vertex to use. - instanceFrequency
Number (or frequency) of instances to draw for each draw call; 1 means draw one instance, 2 means draw 2 instances, etc. Use 0 if you are not instancing.
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, Windows Phone 7