Creates a new instance of VertexBufferImplementation.
Declaration Syntax
C# |
protected VertexBufferImplementation( VertexDeclaration vertexDeclaration, ResourceUsage usage, DataBuffer data )
Parameters
- vertexDeclaration (VertexDeclaration)
- The vertex declaration that describes the data.
- usage (ResourceUsage)
- The resource usage specifying the type of memory the buffer should use.
- data (DataBuffer)
- The interleaved data to initialize the vertex buffer with.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if data or vertex declaration is null. |
ArgumentOutOfRangeException | Thrown if the declaration's vertex stride is not
the same as the data's vertex stride. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)