Tesla Graphics Engine Documentation (January 2012)
SetData<(Of <(<'T>)>)> Method (data, startIndex, elementCount, offsetInBytes, vertexStride, writeOptions)
TeslaTesla.Direct3D10.Graphics.ImplementationD3D10VertexBufferImplementationSetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32, Int32, DataWriteOptions)
Sets the vertex data from an array source.
Declaration Syntax
public override void SetData<T>(
	T[] data,
	int startIndex,
	int elementCount,
	int offsetInBytes,
	int vertexStride,
	DataWriteOptions writeOptions
where T : struct, new()
Generic Template Parameters
The type of data in the vertex buffer.
data (array<T>[]()[][])
Array that holds the vertex data
startIndex (Int32)
Starting index of the element in the array at which to start copying from
elementCount (Int32)
Number of elements to copy from the array
offsetInBytes (Int32)
Offset in bytes from the beginning of the vertex buffer to the data.
vertexStride (Int32)
Size of an element in bytes.
writeOptions (DataWriteOptions)
Writing options for the vertex buffer. None, discard, or no overwrite.
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 write will cause overflow.
TeslaException Thrown if there was an error writing to the buffer.

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