D3D11X_SET_PREDICATION_FROM_QUERY_FLAG Enumeration

Flags to control setting predication from a query.

Syntax

typedef enum D3D11X_SET_PREDICATION_FROM_QUERY_FLAG
{
    D3D11X_SET_PREDICATION_FROM_QUERY_SKIP_IF_VISIBLE,
    D3D11X_SET_PREDICATION_FROM_QUERY_SKIP_IF_INVISIBLE,
    D3D11X_SET_PREDICATION_FROM_QUERY_HINT_WAIT_IF_PENDING
} D3D11X_SET_PREDICATION_FROM_QUERY_FLAG;  

Constants

Constant Description
D3D11X_SET_PREDICATION_FROM_QUERY_SKIP_IF_VISIBLE This “if visible” flag is used if the occlusion-results from the query (a pair of ID3D11DeviceContextX::WriteQuery calls) came back as effectively non-zero (which means unequal WriteQuery results; visible; more than one sample passed depth and stencil testing). Skips subsequent rendering based on occlusion results from the query. The skipped rendering includes the following operations: Draw, Dispatch, Copy, Update, Clear, Generate, and Resolve. For a complete list of skipped operations, see the Remarks section for the method ID3D11DeviceContext::SetPredication at MSDN.
D3D11X_SET_PREDICATION_FROM_QUERY_SKIP_IF_INVISIBLE This “if invisible” flag is used if the occlusion-results from the query (a pair of ID3D11DeviceContextX::WriteQuery calls) came back as effectively zero (which means equal WriteQuery results; invisible; no samples passed depth and stencil testing). Skips subsequent rendering based on occlusion results from the query. The skipped rendering includes the following operations: Draw, Dispatch, Copy, Update, Clear, Generate, and Resolve. For a complete list of skipped operations, see the Remarks section for the method ID3D11DeviceContext::SetPredication at MSDN.
D3D11X_SET_PREDICATION_FROM_QUERY_HINT_WAIT_IF_PENDING This is similar to the standard flag (an enumeration constant) D3D11_QUERY_MISC_PREDICATEHINT regarding making an assumption about the results of a query and predicating based on that assumption in the event that the query results have not yet made it back to memory at the time ID3D11DeviceContextX::SetPredicationFromQuery is issued.

Remarks

This enumeration is used by ID3D11DeviceContextX::SetPredicationFromQuery.

These flags have similar meaning as standard predication on occlusion queries: these flags skip or execute subsequent rendering based on occlusion results from the query.

Requirements

Header: Declared in d3d11_x.h.