ID3D11Device3::CreateQuery1 method (d3d11_3.h)
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
[in] pQueryDesc1
Type: const D3D11_QUERY_DESC1*
Pointer to a D3D11_QUERY_DESC1 structure that represents a query description.
[out, optional] ppQuery1
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
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | d3d11_3.h |
Library | D3D11.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for