Updates the MeshData's index data. This applies to both the CPU copy and the GPU (IndexBuffer) copy, if
the latter exists. Error will occur trying to set data that is not valid for index type already
contained in the IndexBuffer.
Declaration Syntax
C# |
public void UpdateIndexData<T>( DataBuffer<T> data, DataWriteOptions options ) where T : struct, new()
Generic Template Parameters
- T
- Data type - int or short.
Parameters
- data (DataBuffer<(Of <(<'T>)>)>)
- Data to write
- options (DataWriteOptions)
- Write options for dynamic index buffer.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the data is null or if the data type is not valid. |
ArgumentOutOfRangeException | Thrown if writing to or from the buffers will be out of range. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)