Creates a new instance of IndexBuffer.
Declaration Syntax
C# |
public IndexBuffer( DataBuffer<int> data, ResourceUsage usage )
Parameters
- data (DataBuffer<(Of <(<'Int32>)>)>)
- The index data.
- usage (ResourceUsage)
- The resource usage specifying the type of memory the buffer should use.
Exceptions
Exception | Condition |
---|---|
TeslaException | Thrown if creating underlying buffer fails or the render system
was not initialized. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)