D3DHAL_DP2DRAWPRIMITIVE2 - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dhal.h

typedef struct _D3DHAL_DP2DRAWPRIMITIVE2 {
  D3DPRIMITIVETYPE primType;
  DWORD            FirstVertexOffset;
  DWORD            PrimitiveCount;
} D3DHAL_DP2DRAWPRIMITIVE2;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3dhal-_d3dhal_dp2drawprimitive2)

_D3DHAL_DP2DRAWPRIMITIVE2 structure

Description

DirectX 8.0 and later versions only.

D3DHAL_DRAWPRIMITIVE2 is parsed from the command buffer by the D3dDrawPrimitives2 callback when the D3DHAL_DP2COMMAND structure's bCommand member is set to D3DDP2OP_DRAWPRIMITIVE2, and is used to render a primitive.

Members

primType

Specifies the type of primitive to draw (one of D3DPT_POINTLIST, D3DPT_LINELIST, D3DPT_LINESTRIP, D3DPT_TRIANGLELIST, D3DPT_TRIANGLESTRIP or D3DPT_TRIANGLEFAN).

FirstVertexOffset

Specifies the offset, in bytes, in stream zero of the vertex data. This is in contrast to D3DDP2OP_DRAWPRIMITIVE where the start of the vertex data in the vertex stream is specified by a vertex index rather than an actual byte offset.

PrimitiveCount

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

Remarks

The vertex data has been transformed by the runtime.

See also

D3DDP2OP_DRAWPRIMITIVE

D3DDP2OP_DRAWPRIMITIVE2

D3DHAL_DP2COMMAND

D3DHAL_DP2DRAWPRIMITIVE

D3dDrawPrimitives2