VertexDeclaration.VertexDeclaration(Device,GraphicsStream) Constructor (Microsoft.DirectX.Direct3D)
Creates a new instance of the VertexDeclaration class.
Definition
Visual Basic Public Sub New( _
ByVal device As Device, _
ByVal vertexElements As GraphicsStream _
)C# public VertexDeclaration(
Device device,
GraphicsStream vertexElements
);C++ public:
VertexDeclaration(
Device^ device,
GraphicsStream^ vertexElements
);JScript public function VertexDeclaration(
device : Device,
vertexElements : GraphicsStream
);
Parameters
device Microsoft.DirectX.Direct3D.Device
The Device object to associate with the VertexDeclaration.vertexElements Microsoft.DirectX.GraphicsStream
A GraphicsStream object containing VertexElement flags that make up a vertex shader declaration.