Blt
Expand Minimize

SetStreamSource routine

The SetStreamSource function binds a portion of a vertex stream source to a vertex buffer.

Syntax


PFND3DDDI_SETSTREAMSOURCE SetStreamSource;

__checkReturn HRESULT APIENTRY SetStreamSource(
  _In_  HANDLE hDevice,
  _In_  const D3DDDIARG_SETSTREAMSOURCE *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_SETSTREAMSOURCE structure that specifies the portion of the vertex stream source to bind.

Return value

SetStreamSource returns S_OK or an appropriate error result if the portion of the vertex stream source is not successfully bound.

Remarks

The Microsoft Direct3D runtime calls the user-mode display driver's SetStreamSource function to store vertex data of multiple vertex formats in a single vertex data stream. The runtime notifies the driver of where vertex data of a particular format is located in the vertex data stream by supplying the stream offset, in bytes, to the beginning of that vertex data.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETSTREAMSOURCE
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.