D3D11X_QUERY_FLAG Enumeration

Specifies controls to apply in conjunction with WriteQuery and ResetQuery operations.

Syntax

typedef enum D3D11X_QUERY_FLAG
{
    D3D11X_QUERY_OCCLUSION_DB_ALL = 0x0,
    D3D11X_QUERY_OCCLUSION_DB_0 = 0x1,
    D3D11X_QUERY_OCCLUSION_DB_1 = 0x2,
    D3D11X_QUERY_OCCLUSION_DB_2 = 0x4,
    D3D11X_QUERY_OCCLUSION_DB_3 = 0x8,
    D3D11X_QUERY_OCCLUSION_DB_4 = 0x10,
    D3D11X_QUERY_OCCLUSION_DB_5 = 0x20,
    D3D11X_QUERY_OCCLUSION_DB_6 = 0x40,
    D3D11X_QUERY_OCCLUSION_DB_7 = 0x80,
    D3D11X_QUERY_OCCLUSION_USE_LAST_PARAMS_FOR_TYPE = 0x100
} D3D11X_QUERY_FLAG;  

Constants

Constant Description
D3D11X_QUERY_OCCLUSION_DB_ALL Write back the occlusion counts collected by all DB blocks in the pipeline, or reset the counters maintained by all blocks. This is the default and is equivalent to specifying D3D11X_QUERY_OCCLUSION_DB_0 | D3D11X_QUERY_OCCLUSION_DB_1 | D3D11X_QUERY_OCCLUSION_DB_2 | D3D11X_QUERY_OCCLUSION_DB_3.
D3D11X_QUERY_OCCLUSION_DB_0 Write back or reset the occlusion counts collected by DB0.
D3D11X_QUERY_OCCLUSION_DB_1 Write back or reset the occlusion counts collected by DB1.
D3D11X_QUERY_OCCLUSION_DB_2 Write back or reset the occlusion counts collected by DB2.
D3D11X_QUERY_OCCLUSION_DB_3 Write back or reset the occlusion counts collected by DB3.
D3D11X_QUERY_OCCLUSION_DB_4 Write back or reset the occlusion counts collected by DB4. This flag applies to Xbox One X only.
D3D11X_QUERY_OCCLUSION_DB_5 Write back or reset the occlusion counts collected by DB5. This flag applies to Xbox One X only.
D3D11X_QUERY_OCCLUSION_DB_6 Write back or reset the occlusion counts collected by DB6. This flag applies to Xbox One X only.
D3D11X_QUERY_OCCLUSION_DB_7 Write back or reset the occlusion counts collected by DB7. This flag applies to Xbox One X only.
D3D11X_QUERY_OCCLUSION_USE_LAST_PARAMS_FOR_TYPE Use the QueryIndex, Flags, and Stride given in the last ID3D11DeviceContextX::WriteQuery or ID3D11DeviceContextX::ResetQuery call that did not include this flag (ignoring the parameters given in the call which includes the flag). This flag allows for more efficient execution by avoiding an update to control parameters during the query write-back or reset.

Remarks

The flags defined in this enumeration are used with ID3D11DeviceContextX::WriteQuery and ID3D11DeviceContextX::ResetQuery.

Applications may combine one or more of these flags with a logical OR. Use of the flags is currently limited to occlusion queries associated with the D3D11_QUERY_OCCLUSION type.

Requirements

Header: Declared in d3d11_x.h.