Bewerken

Delen via


PFND3D10DDI_DRAW callback function (d3d10umddi.h)

The pfnDraw function draws non-indexed primitives.

Syntax

PFND3D10DDI_DRAW Pfnd3d10ddiDraw;

void Pfnd3d10ddiDraw(
  D3D10DDI_HDEVICE unnamedParam1,
  UINT unnamedParam2,
  UINT unnamedParam3
)
{...}

Parameters

unnamedParam1

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

unnamedParam2

[in] VertexCount: The number of vertices in the vertex buffer that vertices are read from to draw the primitives.

unnamedParam3

[in] StartVertexLocation: The first vertex in the vertex buffer that vertices are read from to draw the primitives.

Return value

None

Remarks

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 pfnDraw 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