PFND3DDDI_SETINDICESUM callback function

The SetIndicesUM function sets the current index buffer to the given user memory buffer.

Syntax

PFND3DDDI_SETINDICESUM Pfnd3dddiSetindicesum;

HRESULT Pfnd3dddiSetindicesum(
  HANDLE hDevice,
  UINT Arg2,
  const VOID *Arg3
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

Arg2

IndexSize [in]

The size, in bytes, of the indices that are contained in the index buffer. The value of this parameter is 2 if the indices are 16-bit quantities or 4 if the indices are 32-bit quantities.

Arg3

pUMBuffer [in]

A pointer to the user-memory buffer that supplies the indices for the index buffer.

Return Value

SetIndicesUM returns S_OK or an appropriate error result if the index buffer is not successfully set to the given user memory buffer.

Requirements

   
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

D3DDDI_DEVICEFUNCS