Share via


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

Returns a declaration from a vertex format.

Definition

Visual Basic Public Shared Function DeclaratorFromFormat( _
    ByVal vertexFormat As VertexFormats _
) As VertexElement()
C# public static VertexElement[] DeclaratorFromFormat(
    VertexFormats vertexFormat
);
C++ public:
static array<VertexElement>^ DeclaratorFromFormat(
    VertexFormats vertexFormat
);
JScript public static function DeclaratorFromFormat(
    vertexFormat : VertexFormats
) : VertexElement[];

Parameters

vertexFormat Microsoft.DirectX.Direct3D.VertexFormats
One or more VertexFormats flags that describe the vertex format from which to generate the returned declaration array.

Return Value

Microsoft.DirectX.Direct3D.VertexElement[]
Array of VertexElement structures that describe the vertex format of the mesh vertices.

Remarks

Exceptions

InvalidMeshException

The mesh is invalid.

See Also