Tesla Graphics Engine Documentation (January 2012)
GetData<(Of <(<'T>)>)> Method (data, startIndex, elementCount, offsetInBytes, vertexStride)
TeslaTesla.Direct3D10.Graphics.ImplementationD3D10VertexBufferImplementationGetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32, Int32)
Gets the data from the vertex buffer and copies it into specified array.
Declaration Syntax
C#
public override void GetData<T>(
	T[] data,
	int startIndex,
	int elementCount,
	int offsetInBytes,
	int vertexStride
)
where T : struct, new()
Generic Template Parameters
T
The type of data in the vertex buffer.
Parameters
data (array<T>[]()[][])
Array to copy contents to from the vertex buffer into
startIndex (Int32)
Index of the element in the array at each to start writing to
elementCount (Int32)
Number of elements to copy
offsetInBytes (Int32)
Offset in bytes from the beginning of the vertex buffer to the data.
vertexStride (Int32)
Size of an element in bytes
Exceptions
Exception Condition
ObjectDisposedException Thrown if Dispose() has been called.
InvalidOperationException Thrown if the write options are incompatible with the resource usage of the buffer.
ArgumentOutOfRangeException Thrown if the data's vertex stride is too small, the offset in bytes is out of range, or the byte offset and number of elements to read will cause overflow.
TeslaException Thrown if there was an error reading from the buffer.

Assembly: Tesla.Direct3D10 (Module: Tesla.Direct3D10) Version: 0.5.0.0 (0.5.0.0)