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

# StartCountersX (XBOX One 系列)

> 選取要從中取樣的 GPU 計數器集。

選取要從中取樣的 GPU 計數器集。

## 語法

```cpp theme={null}
void StartCountersX(  
         ID3D12GraphicsCommandList* pCommandList,  
         ID3D12XboxCounterSet* pCounterSet  
)  
```

### 參數

*pCounterSet*   \_In\_\
類型：ID3D12XboxCounterSet\*

要從中取樣的計數器集。此介面必須由 [ID3D12Device::CreateCounterSetX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/methods/id3d12device_createcountersetx) 建立

### 傳回值

類型：void

## 備註

遊戲必須呼叫此函式，以指定要取樣哪些 GPU 計數器。在此呼叫之後，遊戲可以呼叫 [ID3D12GraphicsCommandList::SampleCountersX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_samplecountersx) 來對所選的計數器取樣。

## 需求

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

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

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

## 另請參閱

[ID3D12Device::CreateCounterSetX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/methods/id3d12device_createcountersetx)

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/id3d12graphicscommandlist)

[ID3D12GraphicsCommandList::SampleCountersX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_samplecountersx)

[ID3D12GraphicsCommandList::StopCountersX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_stopcountersx)


## Related topics

- [PIXReportCounter](/zh-CN/reference/tools/pix3/functions/pixreportcounter.md)
- [chat_manager::start_processing_state_changes](/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_state_changes.md)
- [chat_manager::start_processing_data_frames](/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_data_frames.md)
- [ACP_MESSAGE_AUDIO_FRAME_START](/zh-CN/reference/audio/acphal/structs/acp_message_audio_frame_start.md)
- [chat_manager::start_processing_stream_state_changes](/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_stream_state_changes.md)
