Are you for sure certain that it worked fine before? The reason I ask is because I have found that ever since Windows XP SP3 all the way through every single Windows version, into Windows 10 21H2 even, that the DirectX June 2010 update has to be installed for a substantial number of games and video card related software (benchmarks, rivatuner, etc) to work properly, because far too many programs rely on the optional SDK components that the 2010 Redist update installs. It's really quite silly that it isn't baked into Windows at this point.
I experienced this issue again recently on my Windows 10 21H2, on a brand new install of a fresh, official, untweaked ISO I still had to manually install that DX9 Redist update before my 3D benchmarks like TimerBench would work.
I also had to install VC2015-2022, both the 32bit and 64bit for a large number of games and benchmark tools to work as well, on a fresh, untweaked Windows 10 21H2 ISO.
Even if you didn't manually update these, it's possible that in your previous Windows install that they were installed for you by Windows Update and/or the Microsoft Store, or even a game or other software (automatically, in the background) without you realizing, and you are only noticing now because you are tweaking a fresh install that hasn't been connected online for a while? I know for sure that a lot of Steam games for example will install that DX Redist and C++ updates without you realizing (and .NET frameworks too). Worth looking into at least.