A few things, your hardware needs to support IOMMU (GPU passthrough/hardware acceleration) most systems built in the past few years support this.
You will take about a 10-20% perf, hit in the VM, but it is easily doable.
You only need 1 GFX card, just don't expect to use it on the host and VM at the same time.
This will help
https://blog.zerosector.io/2018/07/28/kvm-qemu-windows-10-gpu-passthrough/
as will this