Specifies the configuration of the DB occlusion counters.
typedef struct D3D11X_QUERY_CONFIG_OCCLUSION {
UINT Samples;
BOOL DisableOptimizationsForCountAccuracy;
D3D11X_QUERY_CONFIG_OCCLUSION_COUNTER Counter[2];
} D3D11X_QUERY_CONFIG_OCCLUSION;
Samples
The number of samples to count per pixel. Specify 0 (the default) as the number of samples to direct the driver to derive the count from the currently active render targets.
DisableOptimizationsForCountAccuracy
If set to TRUE, disables ‘No-op’ culling in the GPU, in order to obtain perfect occlusion count results.
Counter
Configuration definitions for the two sets of supported occlusion counters (see the D3D11X_QUERY_CONFIG_OCCLUSION_COUNTER structure). Each set of supported occlusion counters corresponds to the QueryIndex parameter of ID3D11DeviceContextX::WriteQuery and/or ID3D11DeviceContextX::ResetQuery.
This structure is used in a call to ID3D11DeviceContextX::ConfigureQuery with the D3D11_QUERY_OCCLUSION type to initialize the counters used for occlusion queries.
Header: Declared in d3d11_x.h.