Tesla Graphics Engine Documentation (January 2012)
UpdateVertexData<(Of <(<'T>)>)> Method (semantic, data, options)
TeslaTesla.SceneMeshDataUpdateVertexData<(Of <<'(T>)>>)(VertexSemantic, DataBuffer<(Of <<'(T>)>>), DataWriteOptions)
Updates the MeshData's vertex data. This applies to both the CPU copy and the GPU (VertexxBuffer) copy, if the latter exists. Error will occur trying to set data that is not valid (either did not exist with an already constructed vertex buffer, or type mismatch)
Declaration Syntax
C#
public void UpdateVertexData<T>(
	VertexSemantic semantic,
	DataBuffer<T> data,
	DataWriteOptions options
)
where T : struct, new()
Generic Template Parameters
T
Type parameter specifying vertex element type
Parameters
semantic (VertexSemantic)
Vertex semantic.
data (DataBuffer<(Of <(<'T>)>)>)
The vertex data.
options (DataWriteOptions)
The write options for dynamic vertex buffers.
Exceptions
Exception Condition
ArgumentNullException Thrown if the data is null
ArgumentException Thrown if the vertex element data to write does not match with an existing type in the buffer. due to type mismatch or data size
ArgumentOutOfRangeException Thrown if number of elements to write will be out of range.

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