ID3D11Device::CreateQuery method

This interface encapsulates methods for querying information from the GPU.

Syntax

HRESULT CreateQuery(
  const D3D11_QUERY_DESC *pQueryDesc,
  ID3D11Query            **ppQuery
);

Parameters

pQueryDesc

Type: const D3D11_QUERY_DESC*

Pointer to a query description (see D3D11_QUERY_DESC).

ppQuery

Type: ID3D11Query**

Address of a pointer to the query object created (see ID3D11Query).

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

   
Target Platform Windows
Header d3d11.h
Library D3D11.lib

See Also

ID3D11Device