"Ubershaders: A Ridiculous Solution to an Impossible Problem"
https://dolphin-emu.org/blog/2017/07/30/ubershaders/
Hah. Yes. I appreciate people doing all of this because from a preservation standpoint these emulators will likely be maintainable long after working original hardware becomes very rare.
A similar thing was actually done in n64 world for RSP emulation, another proto-gpu device with it's own highly configurable microcode. First it was emulated in CPU with AngryLion, and someone else I think made it all run in compute shaders on the GPU, meaning you can FINALLY play nearly every n64 game accurately rendered, upscaled rendering if you want, and no slowdowns or bugs or glitches from more rare techniques, like the spy gadget in perfect dark.