Thanks for exploring this one - I assumed that my RetroPie upgrade had overwritten my retroarch.cfg files. The advice here has fixed my missing shaders in my install (a 64-bit Raspberry Pi OS install).
Running and updating the setup script, navigating
P Manage packages
U Re-install (from source)
has fixed the problem for me.