Expand Minimize

D3DHAL_DP2COMMAND structure

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.

Syntax


typedef struct _D3DHAL_DP2COMMAND {
  BYTE  bCommand;
  BYTE  bReserved;
  union {
    WORD wPrimitiveCount;
    WORD wStateCount;
  };
} D3DHAL_DP2COMMAND, *LPD3DHAL_DP2COMMAND;

Members

bCommand

Specifies a primitive to draw or a state change to process. This member can be one of the D3DHAL_DP2OPERATION enumerated values.

bReserved

Reserved for system use and should be ignored by the driver.

wPrimitiveCount

Specifies the number of primitives to process. This member is valid when bCommand is not either of D3DDP2OP_RENDERSTATE or D3DDP2OP_TEXTURESTAGESTATE.

wStateCount

Specifies the number of state changes to process. This member is valid when bCommand is one of D3DDP2OP_RENDERSTATE or D3DDP2OP_TEXTURESTAGESTATE.

Requirements

Header

D3dhal.h (include D3dhal.h)

See also

D3DDP2OP_RENDERSTATE
D3DDP2OP_TEXTURESTAGESTATE
D3dDrawPrimitives2
D3DHAL_DP2OPERATION

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft