Src/GPUPerfAPI-Common/GPUPerfAPI.cpp
//-----------------------------------------------------------------------------
/// Lookup context
/// \param pContext the context to lookup
/// \return the found ContextState or nullptr if not found
Lookup context
\param pContext the context to lookup
\return the found ContextState or nullptr if not found
Lookup context \ param pContext the context to lookup \ return the found ContextState or nullptr if not found
GPA_ContextState* lookupContext(void* pContext)
{
    for (std::vector<GPA_ContextState*>::iterator contextIter = g_Contexts.begin(); contextIter != g_Contexts.end(); ++contextIter)
    {
        if ((*contextIter)->m_pContext == pContext)
        {
            return *contextIter;
        }
    }
    return nullptr;
}
GPA_ContextState * lookupContext ( void * pContext ) { for ( std :: vector < GPA_ContextState * > :: iterator contextIter = g_Contexts . begin ( ) ; contextIter != g_Contexts . end ( ) ; ++ contextIter ) { if ( ( * contextIter ) -> m_pContext == pContext ) { return * contextIter ; } } return nullptr ; }
Lookup context
\param pContext the context to lookup
\return the found ContextState or nullptr if not found
Lookup context \ param pContext the context to lookup \ return the found ContextState or nullptr if not found