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)
| C# |
public void UpdateVertexData<T>( VertexSemantic semantic, DataBuffer<T> data, DataWriteOptions options ) where T : struct, new()
- T
- Type parameter specifying vertex element type
- semantic (VertexSemantic)
- Vertex semantic.
- data (DataBuffer<(Of <(<'T>)>)>)
- The vertex data.
- options (DataWriteOptions)
- The write options for dynamic vertex buffers.
| 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)