Share via


VertexBufferBinding Structure

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Binding structure that specifies a vertex buffer and other per-vertex parameters (such as offset and instancing) for a graphics device.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

Syntax

'Declaration
Public Structure VertexBufferBinding
public struct VertexBufferBinding

The VertexBufferBinding type exposes the following members.

Constructors

  Name Description
Public method VertexBufferBinding(VertexBuffer) Initializes a new instance of the VertexBufferBinding class using the specified VertexBuffer.
Public method VertexBufferBinding(VertexBuffer, Int32) Initializes a new instance of the VertexBufferBinding class using the specified VertexBuffer and vertex offset.

Top

Properties

  Name Description
Public property VertexBuffer Gets a vertex buffer.
Public property VertexOffset Gets the offset between the beginning of the buffer and the vertex data to use.

Top

Operators

  Name Description
Public operatorStatic member Implicit(VertexBuffer to VertexBufferBinding) Converts a vertex buffer to a vertex buffer binding.

Top

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.