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 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:d3dumddi.PFND3DDDI_DRAWINDEXEDPRIMITIVE2 |
PFND3DDDI_DRAWINDEXEDPRIMITIVE2 (d3dumddi.h) |
The DrawIndexedPrimitive2 function draws indexed primitives that the Microsoft Direct3D runtime has transformed the index data in. |
display\drawindexedprimitive2.htm |
display |
05/10/2018 |
|
DrawIndexedPrimitive2, DrawIndexedPrimitive2 callback function [Display Devices], PFND3DDDI_DRAWINDEXEDPRIMITIVE2, PFND3DDDI_DRAWINDEXEDPRIMITIVE2 callback, UserModeDisplayDriver_Functions_55bb1ac5-49e3-428b-9737-ffe0577e6bba.xml, d3dumddi/DrawIndexedPrimitive2, display.drawindexedprimitive2 |
d3dumddi.h |
D3dumddi.h |
Desktop |
Available in Windows Vista and later versions of the Windows operating systems. |
Windows |
|
|
|
|
|
The DrawIndexedPrimitive2 function draws indexed primitives that the Microsoft Direct3D runtime has transformed the index data in.
A handle to the display device (graphics context).
pData [in]
A pointer to a D3DDDIARG_DRAWINDEXEDPRIMITIVE2 structure that describes the primitive to draw.
dwIndicesSize [in]
The size, in bytes, of indexes in the buffer that pIndexBuffer points to. This size is 2 or 4 bytes.
pIndexBuffer [in]
A pointer to a buffer of index data to be drawn.
pFlagBuffer [in, optional]
A pointer to a 32-bit value that contains triangle-edge flags, which are used only during line-fill mode. The first three bits (0/1/2) of the 32-bit value specify how the three edges of the corresponding triangle are rendered. If a bit is set to 1, its associated triangle edge is rendered; otherwise, the edge is not rendered.
If the pointer is NULL, the user-mode display driver should use its fast path to draw primitives.
DrawIndexedPrimitive2 returns S_OK or an appropriate error result if the primitive is not successfully drawn.
Stream zero contains transform indices and is the only stream that should be accessed.
When the Microsoft Direct3D runtime specifies triangle-edge flags in the value that the pFlagBuffer parameter points to, the runtime also specifies to draw only one triangle (that is, the runtime specifies the D3DPT_TRIANGLELIST value in the PrimitiveType member and 0x00000001 in the PrimitiveCount member of the D3DDDIARG_DRAWINDEXEDPRIMITIVE2 structure that the pData parameter points to).