VertexInformation.DeclaratorFromFormat Method

Language:

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


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center