Src/GPUPerfAPI-Common/GPUPerfAPI.cpp
//-----------------------------------------------------------------------------
/// Lookup context state
/// \param pContextState the context to lookup
/// \return the index of the found ContextState or -1 if not found
Lookup context state
\param pContextState the context to lookup
\return the index of the found ContextState or -1 if not found
Lookup context state \ param pContextState the context to lookup \ return the index of the found ContextState or - 1 if not found
int lookupContextState(GPA_ContextState* pContextState)
{
    int contextCount = static_cast<int>(g_Contexts.size());
    for (int i = 0 ; i < contextCount ; i++)
    {
        if (g_Contexts[i] == pContextState)
        {
            return i;
        }
    }
    return -1;
}
int lookupContextState ( GPA_ContextState * pContextState ) { int contextCount = static_cast < int > ( g_Contexts . size ( ) ) ; for ( int i = 0 ; i < contextCount ; i ++ ) { if ( g_Contexts [ i ] == pContextState ) { return i ; } } return -1 ; }
Lookup context state
\param pContextState the context to lookup
\return the index of the found ContextState or -1 if not found
Lookup context state \ param pContextState the context to lookup \ return the index of the found ContextState or - 1 if not found