enum QueryType
{
+ /** Query result indicates if any fragments passed the depth and stencil
+ tests. */
OCCLUSION_QUERY
};
+/**
+A collection of query objects, which can be used to gather feedback from the
+GPU. Semantics of the queries depend on the query type.
+*/
class QueryPool: public QueryPoolBackend, public Msp::NonCopyable
{
friend QueryPoolBackend;
private:
QueryType type;
+ unsigned size;
public:
QueryPool(QueryType type, unsigned);
- using QueryPoolBackend::resize;
- using QueryPoolBackend::get_size;
+ void resize(unsigned);
+ unsigned get_size() const { return size; }
using QueryPoolBackend::get_result;
};