PFND3DDDI_SETSTREAMSOURCE callback function (d3dumddi.h)
The SetStreamSource function binds a portion of a vertex stream source to a vertex buffer.
Syntax
PFND3DDDI_SETSTREAMSOURCE Pfnd3dddiSetstreamsource;
HRESULT Pfnd3dddiSetstreamsource(
HANDLE hDevice,
const D3DDDIARG_SETSTREAMSOURCE *unnamedParam2
)
{...}
Parameters
hDevice
A handle to the display device (graphics context).
unnamedParam2
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
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | d3dumddi.h (include D3dumddi.h) |