ID3D11Device::CreatePredicate Method

Creates a predicate.

Syntax

public:
HRESULT CreatePredicate(
         const D3D11_QUERY_DESC *pPredicateDesc,
         ID3D11Predicate **ppPredicate
)  

Parameters

pPredicateDesc
Type: D3D11_QUERY_DESC *

[in] Pointer to a query description where the type of query must be a D3D11_QUERY_SO_OVERFLOW_PREDICATE or D3D11_QUERY_OCCLUSION_PREDICATE (see D3D11_QUERY_DESC).

ppPredicate
Type: ID3D11Predicate **

[out, optional] Address of a pointer to a predicate (see ID3D11Predicate).

Return value

Type: HRESULT 

This method returns one of the following Direct3D 11 return codes.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11Device

ID3D11Device Members