![]() |
![]() |
![]() |
VertexDeclaration.GetDeclaration Method |
Language: |
Gets the vertex shader declaration.
Visual Basic .NET Public Function GetDeclaration() As VertexElement() C# public VertexElement[] GetDeclaration(); Managed C++ public: VertexElement GetDeclaration() __gc[]; JScript .NET public function GetDeclaration() : VertexElement[];
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.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center