1 #ifndef MSP_GL_QUERY_H_
2 #define MSP_GL_QUERY_H_
4 #include "query_backend.h"
13 /** Query result indicates if any fragments passed the depth and stencil
19 A collection of query objects, which can be used to gather feedback from the
20 GPU. Semantics of the queries depend on the query type.
22 class QueryPool: public QueryPoolBackend
24 friend QueryPoolBackend;
31 const QueryPool &pool;
35 Activate(Renderer &, const QueryPool &, unsigned);
44 QueryPool(QueryType type, unsigned);
46 void resize(unsigned);
47 unsigned get_size() const { return size; }
49 using QueryPoolBackend::get_result;