Skip to main content
Starts a query running.

Syntax

Parameters

pQueryHeap [in]
Type: ID3D12QueryHeap *
Specifies the ID3D12QueryHeap containing the query. Type [in]
Type: D3D12_QUERY_TYPE
Specifies one member of D3D12_QUERY_TYPE. Index [in]
Type: UINT
Specifies the index of the query within the query heap.

Return value

Type: void None.

Remarks

See Queries for more information about D3D12 queries.

Examples

The D3D12PredicationQueries sample uses ID3D12GraphicsCommandList::BeginQuery as follows:
See Example Code in the D3D12 Reference.

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

ID3D12GraphicsCommandList
Last modified on August 20, 2026