1 #ifndef MSP_GL_QUERY_H_
2 #define MSP_GL_QUERY_H_
4 #include <msp/core/noncopyable.h>
5 #include "query_backend.h"
14 /** Query result indicates if any fragments passed the depth and stencil
20 A collection of query objects, which can be used to gather feedback from the
21 GPU. Semantics of the queries depend on the query type.
23 class QueryPool: public QueryPoolBackend, public Msp::NonCopyable
25 friend QueryPoolBackend;
32 const QueryPool &pool;
36 Activate(Renderer &, const QueryPool &, unsigned);
45 QueryPool(QueryType type, unsigned);
47 void resize(unsigned);
48 unsigned get_size() const { return size; }
50 using QueryPoolBackend::get_result;