ID3D11DeviceContextX::ResetQuery Method

Resets the counters used in an occlusion query.

Syntax

public:
void ResetQuery(
         D3D11_QUERY QueryType,
         UINT QueryIndex,
         UINT Flags
)  

Parameters

QueryType
Type: D3D11_QUERY 

[in] Type of query to reset. Only D3D11_QUERY_OCCLUSION is currently supported.

QueryIndex
Type: UINT 

[in] Index of the query to reset. The index is used to select between one of two available occlusion counters for reset.

Flags
Type: UINT 

[in] A set of flags to control the reset, as a bitwise-OR’d combination of D3D11X_QUERY_FLAG enumeration constants.

Return value

None.

Remarks

Reset of an occlusion query without the inclusion of the D3D11X_QUERY_OCCLUSION_USE_LAST_PARAMS_FOR_TYPE flag will implicitly establish a StrideInBytes of 64 for the query. That is, a subsequent call to ID3D11DeviceContextX::WriteQuery which does include D3D11X_QUERY_OCCLUSION_USE_LAST_PARAMS_FOR_TYPE will employ a stride of 64 bytes.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceContextX Interface

ID3D11DeviceContextX Members