ID3D11Device::CreatePredicate method

Creates a predicate.

Syntax


HRESULT CreatePredicate(
  [in]   const D3D11_QUERY_DESC *pPredicateDesc,
  [out]  ID3D11Predicate **ppPredicate
);

Parameters

pPredicateDesc [in]

Type: const D3D11_QUERY_DESC*

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 [out]

Type: ID3D11Predicate**

Address of a pointer to a predicate (see ID3D11Predicate).

Return value

Type: HRESULT

This method returns one of the following Direct3D 11 Return Codes.

Remarks

Windows Phone 8: This API is supported.

Requirements

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11Device

 

 

Community Additions

ADD
Show:
© 2014 Microsoft