Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an instance of this object.
Syntax
'Declaration
Public Sub New ( _
vertexBuffer As VertexBuffer, _
vertexOffset As Integer, _
instanceFrequency As Integer _
)
public VertexBufferBinding (
VertexBuffer vertexBuffer,
int vertexOffset,
int instanceFrequency
)
public:
VertexBufferBinding(
VertexBuffer vertexBuffer,
int vertexOffset,
int instanceFrequency
)
Parameters
- vertexBuffer
Type: VertexBuffer
The vertex buffer. - vertexOffset
Type: Int32
Offset (in vertices) from the beginning of the buffer to the first vertex to use. - instanceFrequency
Type: Int32
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.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
VertexBufferBinding Structure
VertexBufferBinding Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone