# D3D12CommandList::BeginQuery ```cpp void BeginQuery(ID3D12QueryHeap* queryHeap, QueryType type, uint32_t index); ``` 开始查询。 **参数:** - `queryHeap` - 查询堆 - `type` - 查询类型 - `index` - 查询索引 **复杂度:** O(1) ## 相关文档 - [D3D12CommandList 总览](command-list.md) - 返回类总览