Microsoft DirectX 9.0 SDK Update (October 2004)

VertexDeclaration.GetDeclaration Method

Language:

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

Gets the vertex shader declaration.

Definition

Visual Basic .NET Public Function GetDeclaration() As VertexElement()
C# public VertexElement[] GetDeclaration();
Managed C++ public: VertexElement GetDeclaration() __gc[];
JScript .NET public function GetDeclaration() : VertexElement[];

Return Value

Microsoft.DirectX.Direct3D.VertexElement[]. Array of vertex elements that make up a vertex shader declaration. The array ends with the value in the VertexDeclarationEnd field.

Remarks

The size of the array includes the VertexDeclarationEnd field, which ends the declaration. This means that the array count is actually higher than the number of valid vertex elements by one.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.


© 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