VertexInformation.FormatFromDeclarator(VertexElement[]) Method (Microsoft.DirectX.Direct3D)
Returns a VertexFormats structure from a declaration.
Definition
Visual Basic Public Shared Function FormatFromDeclarator( _
ByVal declarator() As VertexElement _
) As VertexFormatsC# 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
The call is invalid.
See Also