D3DBRANCH

typedef struct _D3DBRANCH {

DWORD dwMask;

DWORD dwValue;

BOOL bNegate;

DWORD dwOffset;

} D3DBRANCH, *LPD3DBRANCH;

Performs conditional operations inside an execute buffer. This structure is a forward-branch structure.

dwMask

Bitmask for the branch. This mask is combined with the driver-status mask by using the logical AND operator. If the result equals the value specified in the dwValue member and the bNegate member is FALSE, the branch is taken.

For a list of the available driver-status masks, see the dwStatus member of the D3DSTATUS structure.

dwValue

Application-defined value to compare against the operation described in the dwMask member.

bNegate

TRUE to negate comparison.

dwOffset

How far to branch forward. Specify zero to exit.