3rdparty/bgfx/3rdparty/glslang/glslang/MachineIndependent/reflection.cpp
// build counter block index associations for buffers
build counter block index associations for buffers
build counter block index associations for buffers
void TReflection::buildCounterIndices()
{
    for (int i = 0; i < int(indexToUniformBlock.size()); ++i) {
        const TString counterName(indexToUniformBlock[i].name + "@count");
        const int index = getIndex(counterName);
        if (index >= 0)
            indexToUniformBlock[i].counterIndex = index;
    }
}
void TReflection :: buildCounterIndices ( ) { for ( int i = 0 ; i < int ( indexToUniformBlock . size ( ) ) ; ++ i ) { const TString counterName ( indexToUniformBlock [ i ] . name + " " ) ; const int index = getIndex ( counterName ) ; if ( index >= 0 ) indexToUniformBlock [ i ] . counterIndex = index ; } }
build counter block index associations for buffers
build counter block index associations for buffers
// search for ones that have counters