def __init__(self, name):
        """ Constructs the input block with a given name """
        RPObject.__init__(self)
        self.ptas = {}
        self._inputs = {}
        self.name = name
        self.use_ubo = bool(TypeRegistry.ptr().find_type("GLUniformBufferContext"))

        # Acquire a unique index for each UBO to store its binding
        self.bind_id = GroupedInputBlock.UBO_BINDING_INDEX
        GroupedInputBlock.UBO_BINDING_INDEX += 1

        if self.bind_id == 0:
            # Only output the bind support debug output once (for the first ubo)
            self.debug("Native UBO support =", self.use_ubo)
 Constructs the input block with a given name 
metadrive/render_pipeline/rpcore/util/shader_input_blocks.py