PFND3D10DDI_DRAWINDEXEDINSTANCED callback function

The DrawIndexedInstanced function draws particular instances of indexed primitives.

Syntax


PFND3D10DDI_DRAWINDEXEDINSTANCED DrawIndexedInstanced;

VOID APIENTRY DrawIndexedInstanced(
  _In_ D3D10DDI_HDEVICE hDevice,
  _In_ UINT             IndexCountPerInstance,
  _In_ UINT             InstanceCount,
  _In_ UINT             StartIndexLocation,
  _In_ INT              BaseVertexLocation,
  _In_ UINT             StartInstanceLocation
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

IndexCountPerInstance [in]

The number of indexes per instance of the index buffer that indexes are read from to draw the primitives.

InstanceCount [in]

The number of instances of the index buffer that indexes are read from to draw the primitives.

StartIndexLocation [in]

The first index in the index buffer that indexes are read from to draw the primitives.

BaseVertexLocation [in]

The number that should be added to each index that is referenced by the various primitives to determine the actual index of the vertex elements in each vertex stream.

StartInstanceLocation [in]

The first instance of the index buffer that indexes are read from to draw the primitives.

Return value

None

The driver can use the pfnSetErrorCb callback function to set an error code. For more information about setting error codes, see the Remarks section.

Remarks

The driver should not encounter any error, except for D3DDDIERR_DEVICEREMOVED. Therefore, if the driver passes any error, except for D3DDDIERR_DEVICEREMOVED, in a call to the pfnSetErrorCb function, 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 operation of DrawIndexedInstanced (which typically should not happen), the driver can return D3DDDIERR_DEVICEREMOVED.

Requirements

Target platform

Desktop

Version

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

Header

D3d10umddi.h (include D3d10umddi.h)

See also

D3D10DDI_DEVICEFUNCS
pfnSetErrorCb

 

 

Send comments about this topic to Microsoft

Show: