> ## 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.

# SetOcclusionQueryControlX (XBOX One 系列)

> 設定遮蔽查詢中使用的計數器。

設定遮蔽查詢中使用的計數器。

## 語法

```cpp theme={null}
void SetOcclusionQueryControlX(  
         const D3D12XBOX_OCCLUSION_QUERY_CONTROL* pControl  
)  
```

### 參數

*pControl*   \_In\_opt\_\
類型：[D3D12XBOX\_OCCLUSION\_QUERY\_CONTROL\*](/zh-TW/reference/graphics/d3d12_x/structs/d3d12xbox_occlusion_query_control)

指向 **D3D12XBOX\_OCCLUSION\_QUERY\_CONTROL** 結構的指標，該結構包含一組設定參數。若要套用預設設定，請指定 NULL。

### 傳回值

類型：void

## 需求

**標頭：** d3d12\_x.h

**程式庫：** d3d12\_x.lib

**支援的平台：** XBOX One 系列

## 另請參閱

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/id3d12graphicscommandlist)\
[SetPerfectOcclusionQueriesX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setperfectocclusionqueriesx)


## Related topics

- [XNetworkingQueryConfigurationSetting](/zh-TW/reference/networking/xnetworking/functions/xnetworkingqueryconfigurationsetting.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [BeginQuery](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_beginquery_public.md)
- [EndQuery](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_endquery_public.md)
- [XMemVirtualQuery](/zh-TW/reference/system/xmem/functions/xmemvirtualquery.md)
