Microsoft DirectX 9.0 SDK Update (October 2004)

VertexInformation.FormatFromDeclarator Method

Language:

Note: This documentation is preliminary and is subject to change.

Returns a VertexFormats structure from a declaration.

Definition

Visual Basic .NET Public Shared Function FormatFromDeclarator( _
    ByVal declarator() As VertexElement _
) As VertexFormats
C# public static VertexFormats FormatFromDeclarator(
    VertexElement[] declarator
);
Managed C++ public: static VertexFormats FormatFromDeclarator(
    VertexElement declarator __gc[]
);
JScript .NET public static function FormatFromDeclarator(
    declarator : VertexElement[]
) : VertexFormats;

Parameters

declarator Microsoft.DirectX.Direct3D.VertexElement[]. Array of VertexElement structures that describe the VertexFormats code.

Return Value

Microsoft.DirectX.Direct3D.VertexFormats . Combination of VertexFormats flags that describe the vertex format returned from the declaration.

Remarks

This method fails for any declaration that does not map directly to a vertex format.

Exceptions
InvalidCallException The call is invalid.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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