Bewerken

Delen via


PFND3D10DDI_DRAWINDEXED callback function (d3d10umddi.h)

The pfnDrawIndexed function draws indexed primitives.

Syntax

PFND3D10DDI_DRAWINDEXED Pfnd3d10ddiDrawindexed;

void Pfnd3d10ddiDrawindexed(
  D3D10DDI_HDEVICE unnamedParam1,
  UINT unnamedParam2,
  UINT unnamedParam3,
  INT unnamedParam4
)
{...}

Parameters

unnamedParam1

[in] hDevice: A handle to the display device (graphics context).

unnamedParam2

[in] IndexCount: The number of indices in the index buffer that identify the vertex buffer vertices to draw.

unnamedParam3

[in] StartIndexLocation: The location of the first index to read from the index buffer.

unnamedParam4

[in] BaseVertexLocation: The value added to each index before reading a vertex from the vertex buffer.

Return value

None

Remarks

For an example on how to use indices and vertices, see Understand the Direct3D 11 rendering pipeline.

The driver can use the pfnSetErrorCb callback function to set an error code.

The only error a driver should encounter is D3DDDIERR_DEVICEREMOVED. If the driver passes a different error to pfnSetErrorCb, the Direct3D runtime will determine that the error is critical.

Even if the device was removed, the driver is not required to return D3DDDIERR_DEVICEREMOVED. However, if device removal interfered with the pfnDrawIndexed operation (which typically should not happen), the driver can return D3DDDIERR_DEVICEREMOVED.

Requirements

Requirement Value
Minimum supported client Windows Vista
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See also

D3D10DDI_DEVICEFUNCS

pfnSetErrorCb