![]() |
![]() |
![]() |
VertexDeclaration.VertexDeclaration Constructor |
Language: |
Creates a new instance of the VertexDeclaration class.
Visual Basic .NET Public Sub New( _
ByVal device As Device, _
ByVal vertexElements() As VertexElement _
)C# public VertexDeclaration(
Device device,
VertexElement[] vertexElements
);Managed C++ public: VertexDeclaration(
Device *device,
VertexElement vertexElements __gc[]
);JScript .NET public function VertexDeclaration(
device : Device,
vertexElements : VertexElement[]
);
device Microsoft.DirectX.Direct3D.Device. The Device object to associate with the VertexDeclaration. vertexElements Microsoft.DirectX.Direct3D.VertexElement[]. Array of VertexElement flags that make up a vertex shader declaration. The array must end with the value in the VertexElement.VertexDeclarationEnd field.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center