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