void PerfQuery::CreateDeviceObjects() { for (int i = 0; i != ArraySize(m_query_buffer); ++i) { D3D::dev->CreateQuery(D3DQUERYTYPE_OCCLUSION, &m_query_buffer[i].query); } ResetQuery(); }
ITCursor *OGRIDBTableLayer::GetQuery() { if( poCurr == NULL ) ResetQuery(); return poCurr; }
PerfQuery::PerfQuery() : m_query_read_pos() , m_query_count() { for (u32 i = 0; i != ArraySize(m_query_buffer); ++i) glGenQueries(1, &m_query_buffer[i].query_id); ResetQuery(); }
PerfQuery::PerfQuery() : m_query_read_pos() , m_query_count() { for (ActiveQuery& query : m_query_buffer) glGenQueries(1, &query.query_id); ResetQuery(); }
PerfQuery::PerfQuery() : m_query_read_pos() , m_query_count() { for (int i = 0; i != ArraySize(m_query_buffer); ++i) { D3D11_QUERY_DESC qdesc = CD3D11_QUERY_DESC(D3D11_QUERY_OCCLUSION, 0); D3D::device->CreateQuery(&qdesc, &m_query_buffer[i].query); } ResetQuery(); }
PerfQuery::PerfQuery() : m_query_read_pos() { ResetQuery(); }