> ## 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_COUNTER_SET_DESC (XBOX One 系列)

> 描述可同時取樣的 GPU 硬體計數器集合。

描述可同時取樣的 GPU 硬體計數器集合。

## 語法

```cpp theme={null}
typedef struct D3D12XBOX_COUNTER_SET_DESC
{
    UINT Size;
    UINT Version;

    UINT MC_CITF_CID;
    UINT SQ_SHADER_MASK;

    // The remaining fields differ for Xbox One and Xbox Series X&#124;S.
    // See the declaration in the appropriate header.

    // The declaration for Xbox One is in d3d12_x.h.

    // The declaration for Xbox Series X&#124;S is in d3d12_xs.h.
} D3D12XBOX_COUNTER_SET_DESC;
```

### 成員

*Size*\
類型: UINT

結構的大小。應設定為等於 sizeof(D3D12XBOX\_COUNTER\_SET\_DESC)。

*Version*\
類型: UINT

介面的版本。應設定為等於 D3D12XBOX\_COUNTER\_SET\_DESC\_VERSION。

*MC\_CITF\_CID*\
類型: UINT

與特定記憶體計數器搭配使用，以選取用戶端。

*SQ\_SHADER\_MASK*\
類型: UINT

與 SQ 計數器搭配使用，以限制為特定的著色器階段。

## 備註

此結構是 [ID3D12Device::CreateCounterSetX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/methods/id3d12device_createcountersetx) 的輸入，該方法會建立用來取樣所選計數器的介面。

如需使用範例，請參閱 [GPUBench](https://aka.ms/gdkdl) GXDK 範例。

## 需求

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

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

## 另請參閱

[d3d12\_x](/zh-TW/reference/graphics/d3d12_x/d3d12_x_members)

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


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [D3D12_BLEND_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_blend_desc_public.md)
- [D3D12_SAMPLER_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_sampler_desc_public.md)
- [D3D12_DESCRIPTOR_HEAP_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_descriptor_heap_desc_public.md)
- [D3D12_DEPTH_STENCIL_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public.md)
