Skip to content

Latest commit

 

History

History
76 lines (59 loc) · 3.19 KB

ns-d3dumddi-_d3dddiarg_drawprimitive.md

File metadata and controls

76 lines (59 loc) · 3.19 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NS:d3dumddi._D3DDDIARG_DRAWPRIMITIVE
_D3DDDIARG_DRAWPRIMITIVE (d3dumddi.h)
The D3DDDIARG_DRAWPRIMITIVE structure describes a nonindexed primitive to draw.
display\d3dddiarg_drawprimitive.htm
display
05/10/2018
D3DDDIARG_DRAWPRIMITIVE structure
D3DDDIARG_DRAWPRIMITIVE, D3DDDIARG_DRAWPRIMITIVE structure [Display Devices], UMDisplayDriver_param_Structs_19d7b078-8ea3-4b3a-982a-1163643df142.xml, _D3DDDIARG_DRAWPRIMITIVE, d3dumddi/D3DDDIARG_DRAWPRIMITIVE, display.d3dddiarg_drawprimitive
d3dumddi.h
D3dumddi.h
Windows
Available in Windows Vista and later versions of the Windows operating systems.
Windows
D3DDDIARG_DRAWPRIMITIVE
_D3DDDIARG_DRAWPRIMITIVE
d3dumddi/_D3DDDIARG_DRAWPRIMITIVE
D3DDDIARG_DRAWPRIMITIVE
d3dumddi/D3DDDIARG_DRAWPRIMITIVE
APIRef
kbSyntax
HeaderDef
d3dumddi.h
_D3DDDIARG_DRAWPRIMITIVE
D3DDDIARG_DRAWPRIMITIVE

_D3DDDIARG_DRAWPRIMITIVE structure

-description

The D3DDDIARG_DRAWPRIMITIVE structure describes a nonindexed primitive to draw.

-struct-fields

-field PrimitiveType [in]

A D3DPRIMITIVETYPE-typed value that indicates the type of primitive to draw. This member can be one of the following values: D3DPT_POINTLIST, D3DPT_LINELIST, D3DPT_LINESTRIP, D3DPT_TRIANGLELIST, D3DPT_TRIANGLESTRIP, or D3DPT_TRIANGLEFAN. For more information about D3DPRIMITIVETYPE, see the Microsoft Windows SDK documentation.

-field VStart [in]

The index (into each active vertex stream) of the vertex elements to start drawing with. Vertex data should be read from the current vertex streams (those that are referenced by the current vertex shader).

-field PrimitiveCount [in]

The number of triangles, lines, or points to draw for the given primitive.

-remarks

The Microsoft Direct3D runtime does not transform the vertex data before passing a pointer to the description of the vertex data in the pData parameter in a call to the user-mode display driver's DrawPrimitive function.

When the runtime specifies triangle-edge flags in the value that is pointed to by the pFlagBuffer parameter in the DrawPrimitive call, the runtime also specifies to draw one or more triangles (that is, the runtime specifies the D3DPT_TRIANGLEFAN value in the PrimitiveType member and from 0x00000001 to 0xFFFFFFFF in the PrimitiveCount member of D3DDDIARG_DRAWPRIMITIVE that is pointed to by the pData parameter in the DrawPrimitive call).

-see-also

DrawPrimitive