// d3dumddi.h
PFND3DDDI_SETINDICES Pfnd3dddiSetindices;
HRESULT Pfnd3dddiSetindices(
HANDLE hDevice,
const D3DDDIARG_SETINDICES *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The SetIndices function sets the current index buffer.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_SETINDICES structure that describes parameters for setting the current index buffer.
SetIndices returns S_OK or an appropriate error result if the index buffer is not successfully set.
The Microsoft Direct3D runtime supplies a handle value of zero in the hIndexBuffer member of the D3DDDIARG_SETINDICES structure that is pointed to by the pData parameter to clear the current index buffer. The driver should handle subsequent attempts to draw indexed primitives (before a new current index buffer is established) so that a crash does not occur. The debug version of your driver should display informative messages to the debug output stream when this error condition is detected.