Src/GPUPerfAPICounterGenerator/GPACounterGeneratorGL.cpp
///< default counter name for a driver-supplied counter
< default counter name for a driver-supplied counter
< default counter name for a driver - supplied counter
GPA_CounterGeneratorGL::GPA_CounterGeneratorGL() :
    m_pDriverSuppliedGroups(nullptr),
    m_driverSuppliedGroupCount(0)
{
    SetAllowedCounters(true, true, false); 
    for (int gen = GDT_HW_GENERATION_FIRST_AMD; gen < GDT_HW_GENERATION_LAST; gen++)
    {
        CounterGeneratorSchedulerManager::Instance()->RegisterCounterGenerator(GPA_API_OPENGL, static_cast<GDT_HW_GENERATION>(gen), this);
    }
    for (int gen = GDT_HW_GENERATION_FIRST_AMD; gen < GDT_HW_GENERATION_LAST; gen++)
    {
        CounterGeneratorSchedulerManager::Instance()->RegisterCounterGenerator(GPA_API_OPENGLES, static_cast<GDT_HW_GENERATION>(gen), this);
    }
}
GPA_CounterGeneratorGL :: GPA_CounterGeneratorGL ( ) : m_pDriverSuppliedGroups ( nullptr ) , m_driverSuppliedGroupCount ( 0 ) { SetAllowedCounters ( true , true , false ) ; for ( int gen = GDT_HW_GENERATION_FIRST_AMD ; gen < GDT_HW_GENERATION_LAST ; gen ++ ) { CounterGeneratorSchedulerManager :: Instance ( ) -> RegisterCounterGenerator ( GPA_API_OPENGL , static_cast < GDT_HW_GENERATION > ( gen ) , this ) ; } for ( int gen = GDT_HW_GENERATION_FIRST_AMD ; gen < GDT_HW_GENERATION_LAST ; gen ++ ) { CounterGeneratorSchedulerManager :: Instance ( ) -> RegisterCounterGenerator ( GPA_API_OPENGLES , static_cast < GDT_HW_GENERATION > ( gen ) , this ) ; } }
< default counter name for a driver-supplied counter
< default counter name for a driver - supplied counter
// TODO: investigate allowing software counters in public build (i.e. GPUTime for all hardware) // TODO: need to make some changes to support GPUTime counter on Intel and NVidia in public build // AMD only for GLES (for now) -- will allow Intel and NVidia once GPUTime is supported in public builds