ID3D11Device3::CreateQuery1 method
Creates a query object for querying information from the graphics processing unit (GPU).
Syntax
HRESULT CreateQuery1( [in] const D3D11_QUERY_DESC1 *pQueryDesc1, [out, optional] ID3D11Query1 **ppQuery1 );
Parameters
- pQueryDesc1 [in]
-
Type: const D3D11_QUERY_DESC1*
Pointer to a D3D11_QUERY_DESC1 structure that represents a query description.
- ppQuery1 [out, optional]
-
Type: ID3D11Query1**
A pointer to a memory block that receives a pointer to a ID3D11Query1 interface for the created query object. Set this parameter to NULL to validate the other input parameters (the method will return S_FALSE if the other input parameters pass validation).
Return value
Type: HRESULT
This method returns E_OUTOFMEMORY if there is insufficient memory to create the query object. See Direct3D 11 Return Codes for other possible return values.
Requirements
|
Minimum supported client |
Windows 10 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps only] |
|
Header |
|
|
Library |
|
See also