DynamicVertexBuffer.SetData Generic Method (T , Int32, Int32, SetDataOptions)
Sets dynamic vertex buffer data, specifying the start index, number of elements and options.
Syntax
'Declaration
Public Sub SetData(Of T As ValueType) ( _
data As T(), _
startIndex As Integer, _
elementCount As Integer, _
options As SetDataOptions _
)
public void SetData<T> (
T[] data,
int startIndex,
int elementCount,
SetDataOptions options
) where T : ValueType
public:
generic<typename T> where T : ValueType
void SetData(
T data[],
int startIndex,
int elementCount,
SetDataOptions options
)
Type Parameters
- T
The type of the elements in the array.
Parameters
- data
Type: T
Array of data. - startIndex
Type: Int32
The first element to use. - elementCount
Type: Int32
The number of elements to use. - options
Type: SetDataOptions
Specifies whether existing data in the buffer will be kept after this operation.
Remarks
An InvalidOperationException is thrown if an attempt is made to modify (for example, calls to the SetData method) a resource that is currently set on a graphics device.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
DynamicVertexBuffer Class
DynamicVertexBuffer Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone