D3DHAL_DP2CREATEQUERY - NtDoc

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

typedef struct _D3DHAL_DP2CREATEQUERY {
  DWORD        dwQueryID;
  D3DQUERYTYPE QueryType;
} D3DHAL_DP2CREATEQUERY;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

_D3DHAL_DP2CREATEQUERY structure

Description

DirectX 9.0 and later versions only.

One or more D3DHAL_DP2CREATEQUERY structures are parsed from the command buffer by the D3dDrawPrimitives2 callback when the D3DHAL_DP2COMMAND structure's bCommand member is set to D3DDP2OP_CREATEQUERY, and are used to create resources for queries.

Members

dwQueryID

Identifies the query.

QueryType

Specifies a value from the D3DQUERYTYPE enumeration that indicates the query capability for which the driver creates resources.

Remarks

The runtime uses D3DHAL_DP2CREATEQUERY to identify each query with a unique identifier and a query type. The driver's D3dDrawPrimitives2 callback must process wPrimitiveCount D3DHAL_DP2CREATEQUERY structures from the command buffer. The value of wPrimitiveCount is specified in the D3DHAL_DP2COMMAND structure. The driver parses these structures and creates resources for the queries that they represent as necessary.

The driver creates resources for the following query types:

See also

D3DDEVINFO_VCACHE

D3DDP2OP_CREATEQUERY

D3DHAL_DP2COMMAND

D3DHAL_DP2DELETEQUERY

D3dDrawPrimitives2