> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12XBOX_OCCLUSION_QUERY_CONTROL (famille XBOX One)

> Paramètres pour ID3D12GraphicsCommandList::SetOcclusionQueryControlX.

Paramètres pour ID3D12GraphicsCommandList::SetOcclusionQueryControlX.

## Syntaxe

```cpp theme={null}
typedef struct D3D12XBOX_OCCLUSION_QUERY_CONTROL {  
    UINT  : 1;  
    BOOL EnablePerfectOcclusionQueries : 3;  
    UINT SampleCountLog2 : 4;  
    UINT EnableZPass : 4;  
    UINT EnableZFail : 4;  
    UINT EnableSFail : 4;  
    UINT EnableDepthBoundsFail : 4;  
    UINT EnableEvenSlices : 4;  
    UINT EnableOddSlices : 4;  
} D3D12XBOX_OCCLUSION_QUERY_CONTROL  
```

### Membres

*EnablePerfectOcclusionQueries*\
Type : BOOL

Si la valeur est TRUE, désactive l'élimination no-op dans le GPU afin d'obtenir des résultats parfaits pour les décomptes d'occlusion.

*SampleCountLog2*\
Type : UINT

Log2 du nombre d'échantillons.

*EnableZPass*\
Type : UINT

Active le décompte des échantillons qui réussissent le test de profondeur.

*EnableZFail*\
Type : UINT

Active le décompte des échantillons qui échouent au test de profondeur.

*EnableSFail*\
Type : UINT

Active le décompte des échantillons qui échouent au test de gabarit.

*EnableDepthBoundsFail*\
Type : UINT

Active le décompte des échantillons qui échouent au test des limites de profondeur.

*EnableEvenSlices*\
Type : UINT

Active le décompte des tranches paires.

*EnableOddSlices*\
Type : UINT

Active le décompte des tranches impaires.

## Remarques

Cette structure est passée à [ID3D12GraphicsCommandList::SetOcclusionQueryControlX](/fr/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setocclusionquerycontrolx).

## Configuration requise

**En-tête :** d3d12\_x.h

**Plateformes prises en charge :** famille XBOX One

## Voir aussi

[d3d12\_x](/fr/reference/graphics/d3d12_x/d3d12_x_members)


## Related topics

- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr/nda/nda-topic-directory.md)
- [ID3D12QueryHeap](/fr/reference/graphics/d3d12/interfaces/id3d12queryheap/id3d12queryheap_public.md)
- [D3D12_QUERY_HEAP_DESC](/fr/reference/graphics/d3d12/structs/d3d12_query_heap_desc_public.md)
- [D3D12_QUERY_DATA_PIPELINE_STATISTICS](/fr/reference/graphics/d3d12/structs/d3d12_query_data_pipeline_statistics_public.md)
- [D3D12_QUERY_DATA_SO_STATISTICS](/fr/reference/graphics/d3d12/structs/d3d12_query_data_so_statistics_public.md)
