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

> Describes the purpose of a query heap. A query heap contains an array of individual queries.

Describes the purpose of a query heap.
A query heap contains an array of individual queries.

## Syntax

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

### Members

*Type*\
Type: D3D12\_QUERY\_HEAP\_TYPE

Specifies one member of [D3D12\_QUERY\_HEAP\_TYPE](/reference/graphics/d3d12_x/enums/d3d12_query_heap_type).

*Count*\
Type: UINT

Specifies the number of queries the heap should contain.

*NodeMask*\
Type: UINT

For single GPU operation, set this to zero. If there are multiple GPU nodes, set a bit to identify the node (the  device's physical adapter) to which the query heap applies.
Each bit in the mask corresponds to a single node.
Only 1 bit must be set.
Refer to [Multi-adapter systems](https://learn.microsoft.com/en-us/windows/win32/direct3d12/multi-engine).

## Remarks

Use this structure with [CreateQueryHeap](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createqueryheap_public).

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

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


## Related topics

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