// d3dhal.h
typedef struct _D3DHAL_DP2ISSUEQUERY {
DWORD dwQueryID;
DWORD dwFlags;
} D3DHAL_DP2ISSUEQUERY;
View the official Windows Driver Kit DDI referenceNo description available.
DirectX 9.0 and later versions only.
One or more D3DHAL_DP2ISSUEQUERY structures are parsed from the command buffer by the D3dDrawPrimitives2 callback when the D3DHAL_DP2COMMAND structure's bCommand member is set to D3DDP2OP_ISSUEQUERY, and are used to query for various types of information.
dwQueryIDIdentifies the query for which the driver asynchronously provides information.
dwFlagsSpecifies the state of the query. This member can contain one or more of the following flags:
| Value | Meaning |
|---|---|
| D3DISSUE_BEGIN (1 << 1) | Starts building the query. The runtime does not request query data while in this state. |
| D3DISSUE_END (1 << 0) | Transitions the state to subsignaled. Results of the query are not available until the state transitions to signaled. |
The driver can ignore query requests with dwFlags set to 0.
The runtime uses D3DHAL_DP2ISSUEQUERY to identify each query that the driver must process. The driver's D3dDrawPrimitives2 callback must process wPrimitiveCount D3DHAL_DP2ISSUEQUERY structures from the command buffer. The value of wPrimitiveCount is specified in the D3DHAL_DP2COMMAND structure. The driver parses these structures and retrieves information associated with the queries that they represent.
D3DDP2OP_ISSUEQUERY