WSL2 depends on the OS and not the GPU driver as far as I am aware.
This Windows Tech site gives good instructions on how to enable WSL & WSL2 in Windows 10: https://www.windowscentral.com/how-install-wsl2-windows-10
I enabled WSL first in my Windows 10 using a GTX1070 GPU card and then afterwards updated to WSL2 using the above link's instructions.
I then was able to install Ubuntu App on my computer to run Linux programs.