ARB_gl_spirv: evaluate adding a block visitor for UBO/SSBO linking and uniform
GLSL linker has some utility classes that iterates trough the ir tree to help to link ubo/ssbos and uniforms in general.
This was initially discarded for ARB_gl_spirv, as we lack the access to C++ classes. So current implementation rely on function calling and recursion.
Additionally, the type iteration is done different on ubo/ssbo linking compared with how uniforms are linked. So introducing a visitor would help to manage both cases in a more uniform way.
And even if a visitor is not added, it would be good to share the mechanism somehow, in order to reduce the code to maintain