PFND3DDDI_SETINDICES callback function

The SetIndices function sets the current index buffer.

Syntax

PFND3DDDI_SETINDICES Pfnd3dddiSetindices;

HRESULT Pfnd3dddiSetindices(
  HANDLE hDevice,
  CONST D3DDDIARG_SETINDICES *
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

*

Return Value

SetIndices returns S_OK or an appropriate error result if the index buffer is not successfully set.

Remarks

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.

Requirements

   
Windows version Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See Also

D3DDDIARG_SETINDICES

D3DDDI_DEVICEFUNCS