src/third_party/angle/src/libANGLE/renderer/glslang_wrapper_utils.cpp
// Strip indices from the name.  If there are non-zero indices, return false to indicate that this
// image uniform doesn't require set/binding.  That is done on index 0.
Strip indices from the name.  If there are non-zero indices, return false to indicate that this
image uniform doesn't require set/binding.  That is done on index 0.
Strip indices from the name . If there are non - zero indices return false to indicate that this image uniform doesn ' t require set / binding . That is done on index 0 .
bool GetImageNameWithoutIndices(std::string *name)
{
    if (name->back() != ']')
    {
        return true;
    }
    if (!UniformNameIsIndexZero(*name, false))
    {
        return false;
    }
    *name = name->substr(0, name->find('['));
    return true;
}
bool GetImageNameWithoutIndices ( std :: string * name ) { if ( name -> back ( ) != ' ' ) { return true ; } if ( ! UniformNameIsIndexZero ( * name , false ) ) { return false ; } * name = name -> substr ( 0 , name -> find ( ' ' ) ) ; return true ; }
Strip indices from the name.
Strip indices from the name .
// Strip all indices