Checks if the array of vertex elements is valid.
| C# |
public static void ValidateVertexElements( int vertexStride, params VertexElement[] elements )
- vertexStride (Int32)
- Total size in bytes of the vertex elements
- elements (array<VertexElement>[]()[][])
- Vertex elements
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if the elements array is null. |
| ArgumentOutOfRangeException | Thrown if the vertex stride is less than zero, or a vertex element
is outside the stride. |
| ArgumentException | Thrown if the vertex stride or an element offset is not a multiply of four,
or if duplicate vertex elements are found, or if two vertex elements overlap. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)