PFND3DDDI_SETINDICES callback function (d3dumddi.h)

The SetIndices function sets the current index buffer.

Syntax

PFND3DDDI_SETINDICES Pfnd3dddiSetindices;

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

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_SETINDICES structure that describes parameters for setting the current index buffer.

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

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)

See also

D3DDDIARG_SETINDICES

D3DDDI_DEVICEFUNCS