ID3D11DeviceContext::Draw Method
Draw non-indexed, non-instanced primitives.
Syntax
void Draw(
[in] UINT VertexCount,
[in] UINT StartVertexLocation
);
Parameter
VertexCount [in]
Typ: UINTNumber of vertices to draw.
StartVertexLocation [in]
Typ: UINTIndex of the first vertex, which is usually an offset in a vertex buffer; it could also be used as the first vertex id generated for a shader parameter marked with the SV_TargetId system-value semantic.
Rückgabewert
Returns nothing.
Hinweise
A draw API 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. However, you could also provide the vertex data from a shader that has vertex data marked with the SV_VertexId system-value semantic.
Anforderungen
Header |
D3D11.h |
Bibliothek |
D3D11.lib |