// d3dumddi.h
PFND3DDDI_SETSTREAMSOURCE Pfnd3dddiSetstreamsource;
HRESULT Pfnd3dddiSetstreamsource(
HANDLE hDevice,
const D3DDDIARG_SETSTREAMSOURCE *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The SetStreamSource function binds a portion of a vertex stream source to a vertex buffer.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_SETSTREAMSOURCE structure that specifies the portion of the vertex stream source to bind.
SetStreamSource returns S_OK or an appropriate error result if the portion of the vertex stream source is not successfully bound.
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.