MCPcopy Create free account
hub / github.com/Anttwo/SuGaR / GPUQuery

Method GPUQuery

gaussian_splatting/SIBR_viewers/src/core/graphics/GPUQuery.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15using namespace sibr;
16
17GPUQuery::GPUQuery(GLenum type, size_t count) : _count(count), _type(type){
18 if(count < 2) {
19 SIBR_WRG << "Using a buffer of size >= 2 is recommended to avoid synchronization problems." << std::endl;
20 }
21 _ids.resize(count);
22 glGenQueries(GLsizei(_ids.size()), &_ids[0]);
23 _current = _count - 1;
24 // Dummy initial query.
25 for (int i = 0; i < _count; ++i)
26 {
27 begin();
28 end();
29 }
30}
31
32void GPUQuery::begin() {
33 if(_observing) {

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected