Setting the Stream Source

The Device.SetStreamSource method binds a vertex buffer to a device data stream, creating an association between the vertex data and one of several data stream ports that feed the primitive processing functions. The actual references to the stream data do not occur until a drawing method, such as Device.DrawPrimitives, is called.

A stream is defined as a uniform array of component data, where each component consists of one or more elements that represent a single entity such as position, normal, or color. The Stride parameter of the Device.SetStreamSource method specifies the size of the component in bytes.