Ideally, if it is a Ryzen APU used for gaming, it is best to have 16 GB of RAM. This will be the sweet spot because most games today do not use that much RAM.
Of course, you can have much more RAM than that if you wish, which will enhance the gaming performance by about 20% since the GPU in an APU is much more responsive to the memory bandwidth than the CPU.