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

# D3D12_QUERY_HEAP_DESC

> 描述查詢堆積的用途。查詢堆積包含個別查詢的陣列。

描述查詢堆積的用途。
查詢堆積包含個別查詢的陣列。

## 語法

```cpp theme={null}
typedef struct D3D12_QUERY_HEAP_DESC
{
    D3D12_QUERY_HEAP_TYPE Type;
    UINT Count;
    UINT NodeMask;
} D3D12_QUERY_HEAP_DESC
```

### 成員

*Type*\
類型：D3D12\_QUERY\_HEAP\_TYPE

指定 [D3D12\_QUERY\_HEAP\_TYPE](/zh-TW/reference/graphics/d3d12_x/enums/d3d12_query_heap_type) 的一個成員。

*Count*\
類型：UINT

指定堆積應包含的查詢數目。

*NodeMask*\
類型：UINT

對於單一 GPU 作業，請將此值設為零。如果有多個 GPU 節點，請設定一個位元，以識別查詢堆積所套用的節點 (裝置的實體介面卡)。
遮罩中的每個位元都對應到單一節點。
只能設定 1 個位元。
請參閱[多介面卡系統](https://learn.microsoft.com/en-us/windows/win32/direct3d12/multi-engine)。

## 備註

請將此結構與 [CreateQueryHeap](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createqueryheap_public) 搭配使用。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機與 XBOX One 系列

## 另請參閱

[核心結構](https://learn.microsoft.com/en-us/windows/win32/direct3d12/direct3d-12-structures)


## Related topics

- [CreateQueryHeap](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createqueryheap_public.md)
- [D3D12_DESCRIPTOR_HEAP_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_descriptor_heap_desc_public.md)
- [ID3D12QueryHeap](/zh-TW/reference/graphics/d3d12/interfaces/id3d12queryheap/id3d12queryheap_public.md)
- [D3D12_DESCRIPTOR_HEAP_TYPE](/zh-TW/reference/graphics/d3d12/enums/d3d12_descriptor_heap_type_public.md)
- [ID3D12Heap::GetDesc](/zh-TW/reference/graphics/d3d12/interfaces/id3d12heap/methods/id3d12heap_getdesc_public.md)
