ID3D11DeviceContext::DrawIndexed method

Draw indexed, non-instanced primitives.

Syntax

void DrawIndexed(
  UINT IndexCount,
  UINT StartIndexLocation,
  INT  BaseVertexLocation
);

Parameters

IndexCount

Type: UINT

Number of indices to draw.

StartIndexLocation

Type: UINT

The location of the first index read by the GPU from the index buffer.

BaseVertexLocation

Type: INT

A value added to each index before reading a vertex from the vertex buffer.

Return Value

Returns nothing.

Remarks

A draw API submits work to the rendering pipeline.

If the sum of both indices is negative, the result of the function call is undefined.

Requirements

   
Target Platform Windows
Header d3d11.h
Library D3D11.lib

See Also

ID3D11DeviceContext