Language

VertexInformation.GetFormatSize(VertexFormats) Method (Microsoft.DirectX.Direct3D)

Returns the size of the vertex format.

Definition

Visual Basic Public Shared Function GetFormatSize( _
    ByVal vertexFormat As VertexFormats _
) As Integer
C# public static int GetFormatSize(
    VertexFormats vertexFormat
);
C++ public:
static int GetFormatSize(
    VertexFormats vertexFormat
);
JScript public static function GetFormatSize(
    vertexFormat : VertexFormats
) : int;

Parameters

vertexFormat Microsoft.DirectX.Direct3D.VertexFormats
Vertex format for which to return size.

Return Value

System.Int32
An Int32Leave Site value that indicates the size of the vertex format.

Remarks

Exceptions

InvalidMeshException

The mesh is invalid.