// d3dhal.h
typedef struct _D3DHAL_DP2COMMAND {
BYTE bCommand;
BYTE bReserved;
union {
WORD wPrimitiveCount;
WORD wStateCount;
};
} D3DHAL_DP2COMMAND, *LPD3DHAL_DP2COMMAND;
View the official Windows Driver Kit DDI referenceNo description available.
One or more D3DHAL_DP2COMMAND structures are parsed from the command buffer by the D3dDrawPrimitives2 callback, which uses the information it receives to draw one or more primitives. Each structure specifies either a primitive to draw or a state change to process.
bCommandSpecifies a primitive to draw or a state change to process. This member can be one of the D3DHAL_DP2OPERATION enumerated values.
bReservedReserved for system use and should be ignored by the driver.
wPrimitiveCountSpecifies the number of primitives to process. This member is valid when bCommand is not either of D3DDP2OP_RENDERSTATE or D3DDP2OP_TEXTURESTAGESTATE.
wStateCountSpecifies the number of state changes to process. This member is valid when bCommand is one of D3DDP2OP_RENDERSTATE or D3DDP2OP_TEXTURESTAGESTATE.
D3DDP2OP_RENDERSTATE
D3DDP2OP_TEXTURESTAGESTATE