?/TD>
Microsoft DirectX 9.0

D3DQUERYTYPE Enumerated Type


Identifies the query type.

Syntax

typedef enum _D3DQUERYTYPE {
    D3DQUERYTYPE_VCACHE = 4,
    D3DQUERYTYPE_RESOURCEMANAGER = 5,
    D3DQUERYTYPE_VERTEXSTATS = 6,
    D3DQUERYTYPE_EVENT = 8,
    D3DQUERYTYPE_OCCLUSION = 9
} D3DQUERYTYPE;

Constants

D3DQUERYTYPE_VCACHE

Query for driver hints about data layout for vertex caching.

D3DQUERYTYPE_RESOURCEMANAGER

Query the resource manager.

D3DQUERYTYPE_VERTEXSTATS

Query vertex statistics.

D3DQUERYTYPE_EVENT

Query for any and all asynchronous events that have been issued from application programming interface (API) calls.

D3DQUERYTYPE_OCCLUSION

An occlusion query returns the number of pixels that pass z-testing. These pixels are for primitives drawn between the issue of D3DISSUE_BEGIN and D3DISSUE_END. This enables an application to check the occlusion result against 0. Zero is "fully occluded," which means the pixels are not visible from the current camera position.

Remarks

QuertyTypeValid issue flagGetData bufferRuntimeImplicit beginning of query
D3DQUERYTYPE_VCACHED3DISSUE_ENDD3DDEVINFO_VCACHERetail/DebugCreateDevice()
D3DQUERYTYPE_RESOURCEMANAGERD3DISSUE_ENDD3DDEVINFO_RESOURCEMANAGERDebug onlyPresent()
D3DQUERYTYPE_VERTEXSTATSD3DISSUE_ENDD3DDEVINFO_D3DVERTEXSTATSDebug onlyPresent()
D3DQUERYTYPE_EVENTD3DISSUE_ENDBOOLRetail/DebugCreateDevice()
D3DQUERYTYPE_OCCLUSIOND3DISSUE_BEGIN, D3DISSUE_ENDDWORDRetail/DebugN/A

For a D3DQUERYTYPE_RESOURCEMANAGER query, the device behavior flags must include D3DCREATE_DISABLE_DRIVER_MANAGEMENT.

Enumerated Type Information

Headerd3d9types.h
Minimum operating systems Windows 98

See Also

IDirect3DDevice9::CreateQuery, D3DISSUE_BEGIN, D3DISSUE_END


© 2002 Microsoft Corporation. All rights reserved.