ID3D11DeviceContext::Draw method

Draw non-indexed, non-instanced primitives.

Syntax

void Draw(
  UINT VertexCount,
  UINT StartVertexLocation
);

Parameters

VertexCount

Type: UINT

Number of vertices to draw.

StartVertexLocation

Type: UINT

Index of the first vertex, which is usually an offset in a vertex buffer.

Return Value

Returns nothing.

Remarks

Draw submits work to the rendering pipeline.

The vertex data for a draw call normally comes from a vertex buffer that is bound to the pipeline.

Even without any vertex buffer bound to the pipeline, you can generate your own vertex data in your vertex shader by using the SV_VertexID system-value semantic to determine the current vertex that the runtime is processing.

Requirements

   
Target Platform Windows
Header d3d11.h
Library D3D11.lib

See Also

ID3D11DeviceContext