Tesla Graphics Engine Documentation (January 2012)
ValidateVertexElements Method (vertexStride, elements)
TeslaTesla.GraphicsVertexDeclarationValidateVertexElements(Int32, array<VertexElement>[]()[][])
Checks if the array of vertex elements is valid.
Declaration Syntax
C#
public static void ValidateVertexElements(
	int vertexStride,
	params VertexElement[] elements
)
Parameters
vertexStride (Int32)
Total size in bytes of the vertex elements
elements (array<VertexElement>[]()[][])
Vertex elements
Exceptions
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)