I can't seem to get it to work.
Topic on Talk:Call of Duty: Modern Warfare
Dx11 was never available in this game, DX12 only, if you're interested because you wanna run on Windows 7, the game before supported D3D12on7 but this has been removed around September 2021 so it will no longer run. Risking a ban you may try using DXVK but I know someone who got banned for trying but it did work (aside the ban).