D3DDDIARG_SETSTREAMSOURCE structure (d3dumddi.h)

The D3DDDIARG_SETSTREAMSOURCE structure describes the portion of the vertex stream to bind to a vertex buffer.

Syntax

typedef struct _D3DDDIARG_SETSTREAMSOURCE {
  [in] UINT   Stream;
  [in] HANDLE hVertexBuffer;
  [in] UINT   Offset;
  [in] UINT   Stride;
} D3DDDIARG_SETSTREAMSOURCE;

Members

[in] Stream

The stream to bind, which is a value between zero and the maximum number of streams that are specified by the driver.

[in] hVertexBuffer

A handle to the vertex buffer. If this member is zero, the stream should no longer be bound to a vertex buffer.

[in] Offset

The offset in bytes into the stream.

The Offset value must be DWORD-aligned.

[in] Stride

The size, in bytes, from one vertex to the next vertex. If Stride is set to zero, all of the vertices receive the same data for processing.

For example, an application might use two input source streams where the first stream contains position information and the second stream contains normal information. If stride for the second stream is set to zero, all of the vertices in the second stream use the same normal information, which is the first normal information that occurs in the second stream.

The Stride value must be DWORD-aligned.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3dumddi.h (include D3dumddi.h)

See also

SetStreamSource