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, int startIndex, int elementCount, DataWriteOptions options ) where T : struct, new()
Generic Template Parameters
- T
- Data type - int or short.
Parameters
- data (DataBuffer<(Of <(<'T>)>)>)
- Data to write
- startIndex (Int32)
- Starting index in the Data to read from
- elementCount (Int32)
- Number of elements 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)