I think your limiting factor here would be storage if you plan to record extended gameplay in 4K, 60 FPS. Also, if the game you are running is very graphics intensive, you might see some stutter here and there.
There are some tutorials online teaching you how to record in 1080p, 2K or 4K, just check YouTube.