Edit

Share via


ID3D10Predicate interface (d3d10.h)

A predicate interface determines whether geometry should be processed depending on the results of a previous draw call.

Inheritance

The ID3D10Predicate interface inherits from the ID3D10Query interface.

Remarks

A predicate can be created with ID3D10Device::CreatePredicate, and used with ID3D10Device::SetPredication.

There are two types of predicates in Direct3D 10: stream-output-overflow predicates and occlusion predicates. Stream-output-overflow predicates will cause any geometry residing in stream-output buffers that were overflowed to not be processed. Occlusion predicates will cause any geometry that did not have a single sample pass the depth/stencil tests to not be processed.

For an example of occlusion-predicated rendering, see Draw Predicated Sample.

Requirements

Requirement Value
Target Platform Windows
Header d3d10.h

See also

Core Interfaces

ID3D10Query