def glsl_type_to_pta(self, glsl_type):
        """ Converts a glsl type to a PtaXXX type """
        for key, val in iteritems(GroupedInputBlock.PTA_MAPPINGS):
            if val == glsl_type:
                return key
        self.error("Could not resolve GLSL type:", glsl_type)
 Converts a glsl type to a PtaXXX type 
metadrive/render_pipeline/rpcore/util/shader_input_blocks.py