> ## 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](/reference/graphics/d3d12_x/enums/d3d12_query_heap_type) 的一个成员。

*Count*\
类型：UINT

指定堆应包含的查询数量。

*NodeMask*\
类型：UINT

对于单 GPU 操作，将其设置为零。如果有多个 GPU 节点，则设置一个位以标识查询堆所应用于的节点（设备的物理适配器）。
掩码中的每一位对应一个节点。
只能设置 1 位。
请参阅 [Multi-adapter systems](https://learn.microsoft.com/en-us/windows/win32/direct3d12/multi-engine)。

## 备注

将此结构与 [CreateQueryHeap](/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 系列

## 另请参阅

[Core Structures](https://learn.microsoft.com/en-us/windows/win32/direct3d12/direct3d-12-structures)


## Related topics

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