VertexInformation.FormatFromDeclarator Method

Language:

Returns a VertexFormats structure from a declaration.

Definition

Visual Basic Public Shared Function FormatFromDeclarator( _
    ByVal declarator() As VertexElement _
) As VertexFormats
C# public static VertexFormats FormatFromDeclarator(
    VertexElement[] declarator
);
C++ public:
static VertexFormats FormatFromDeclarator(
    array<VertexElement>^ declarator
);
JScript 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


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