Blt
Expand Minimize

SetIndices routine

The SetIndices function sets the current index buffer.

Syntax


PFND3DDDI_SETINDICES SetIndices;

__checkReturn HRESULT APIENTRY SetIndices(
  _In_  HANDLE hDevice,
  _In_  const D3DDDIARG_SETINDICES *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

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

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETINDICES
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft